Spork + Minitest

自闭症网瘾萝莉.ら 提交于 2019-12-08 04:26:36

问题


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



来源:https://stackoverflow.com/questions/9932384/spork-minitest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!