Can anyone explain how to use Spork with Minitest. I see there's a spork-minitest gem, but it's not clear how to use it.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
after you add it to your Gemfile, you can use the docs at https://github.com/sporkrb/spork and substitute in 'minitest'.
so you can do spork minitest --bootstrap
then to run tests, spork-minitest provides a testdrb
which you can pass tests into so testdrb test/unit/something_test.rb