Is it possible to run a single test in MiniTest?

后端 未结 13 1614
旧时难觅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:20

    I use ruby /path/to/test -n /distinguishable word/

    Edit: -n is a shorthand for --name. distinguishable word can be any string you put in the test description, I usually use some random word that I know won't be present in other tests' descriptions.

    0 讨论(0)
提交回复
热议问题