-->

Spork + Minitest

2019-06-03 20:14发布

问题:

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