Minitest::RubyGolfMetrics
This is a Minitest plugin that can be used to play Ruby Golf.
It makes some assumptions which make it unusable for you if you don't play the game by its rules:
- your tasks are tested in the minitest class
RubyGolfTest
- the contestants implement their solutions as module methods in the module
RubyGolf
- the test methods are called test_hole_<method_name>[<numeric_suffix>]
That's it.
Installation
Add this line to your application's Gemfile:
gem 'minitest-ruby_golf_metrics'
And then execute:
$ bundle
Usage
Run your minitests and check your results.
You can provide the parameter --nocolor to prevent the metrics output from being colorized.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request