rubyruby-on-rails-3minitest

Is it possible to run a single test in MiniTest?


I can run all tests in a single file with:

rake test TEST=path/to/test_file.rb

However, if I want to run just one test in that file, how would I do it?

I'm looking for similar functionality to:

rspec path/to/test_file.rb -l 25

Solution

  • I'm looking for similar functionality to rspec path/to/file.rb -l 25

    With Nick Quaranto's "m" gem, you can say:

    m spec/my_spec.rb:25