You have a choice of (at least) three frameworks. This repo includes tests for:
Use whichever one you like the most!
To see whether you have the testing tools installed correctly, you can run the following commands:
ruby test_unit_test.rb # 1 tests, 1 assertions, 0 failures
ruby minitest_test.rb # 1 runs, 1 assertions, 0 failures
rspec rspec_spec.rb # 1 example, 0 failures
I've created a Gemfile that will install each of these tools, if you need. Install them with:
gem install bundler
bundle install
That's it!
You might be interested in using one of the following testing frameworks:
Feel free! And why not help out your fellow code retreaters in the process? Here's how you can add a new framework to this project:
- Create an example test file
- Add any relevant gems to the Gemfile
- Update this README.md
- Send a pull request!