I am wondering is there anyway to step through code in minitest? if I put byebug or debugger in my code and run the test that hits it, the tests run right through and dont stop. Is there anyway to stop the code and step through the way you do in development?
Remember to put in the test group in your Gemfile
group :test do
gem 'byebug'
. . .
end
运行minitest时,如有必要,可以使用pry
宝石并在测试用例中放入binding.pry。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.