Project

oktest

0.02
Low commit activity in last 3 years
Oktest.rb is a new-style testing library for Ruby. You can write `ok {1+1} == 2` instead of `assert_equal 2, 1+1` or `expect(1+1).to eq 2`. In addition, Oktest.rb supports **Fixture injection** feature inspired by dependency injection and **JSON Matcher** feature similar to JSON schema. See https://github.com/kwatch/oktest/tree/ruby/ruby for details.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Oktest README

Oktest is a new-style testing library for Python, Ruby, JavaScript, Perl, etc.

Features

  • ok (actual) == expected style assertion.
  • Fixture injection inspired by dependency injection.
  • Structured test specifications like RSpec.
  • Filtering testcases by pattern or tags.
  • Blue/red color instead of green/red for accesability.
  • Small code size (about 2000~3000 lines) and good performance.

Branches

Python:
https://github.com/kwatch/oktest/tree/python/python
https://pythonhosted.org/Oktest/ (users-guide)

Ruby:
https://github.com/kwatch/oktest/tree/ruby/ruby

JavaScript:
https://github.com/kwatch/oktest/tree/javascript/javascript

Perl:
https://github.com/kwatch/oktest/tree/perl/perl

License

MIT License