Is it possible to run a single test in MiniTest?

后端 未结 13 1618
旧时难觅i
旧时难觅i 2020-12-12 10:29

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 wo

13条回答
  •  不思量自难忘°
    2020-12-12 11:13

    No gem required: ruby -Itest test/lib/test.rb --name /some_test/

    Source: http://blog.arvidandersson.se/2012/03/28/minimalicous-testing-in-ruby-1-9

提交回复
热议问题