No commit activity in last 3 years
No release in over 3 years
Provide metrics for evaluating ruby golf solutions concerning code length when running minitests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 5.0.0
>= 0.6.0.rc4
 Project Readme

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request