How to run a single test from a rails test suite?

后端 未结 12 1762
故里飘歌
故里飘歌 2020-12-07 09:09

How can I run a single test from a rails test suite?

rake test ANYTHING seems to not help.

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 09:39

    In rails 5,

    I used this way to run single test file(all the tests in one file)

    rails test -n /TopicsControllerTest/ -v
    

    look here https://stackoverflow.com/a/41183694/3626659

提交回复
热议问题