0.0
No commit activity in last 3 years
No release in over 3 years
Run test by test names. Test names are passed by command line aregument which is separated by commas.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

Build Status

minitest-names

It supports to run multiple testcases by it testcase names. The minitest supports regular expression to run some testcases with -n/--name option. However, sometime it's difficult to make regular expression for test. So, it would be nice to have a feature passing testcase names to run tests.

minitest-names doesn't support regular expression.

Installation

Add this line to your application's Gemfile:

gem 'minitest-names'

And then execute:

$ bundle

Or install it yourself as:

$ gem install minitest-names

Usage

To pass testcase name which separated by comma.

Using short option.

$ rake TESTOPTS="-N=\"test_say_hello, test_say_kiaora\""

Using long option.

rake TESTOPTS="--names=\"test_say_hello, test_say_kiaora\""

In the TESTOPTS option, you need to escape double quotation.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/minitest-names/fork )
  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 a new Pull Request