Skip to content
minitest plugin
Ruby
Find file
New pull request
Latest commit 4512bdc 市川 正美@SYS Update version.
Failed to load latest commit information.
lib/minitest Update version.
test Add more tests.
.gitignore Initial commit.
.travis.yml Add ruby versions.
Gemfile Initial commit.
LICENSE.txt Initial commit.
README.md Add description and instructions.
Rakefile Initial commit.
minitest-names.gemspec update gemspec.

README.md

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
Something went wrong with that request. Please try again.