ruby - How to make minitest stop execution on failure? -


i using minitest runner functional tests, using selenium driver run browser. each test modeled minitest::unit::testcase.

minitest reports summary of execution when completes executing tests. exceptions encountered printed towards end of execution. find difficult debug when unexpected fails context of execution lost. exceptions running not deterministic.

is there way make minitest runner stop execution of tests on exception or assertion failure?

i using minitest (2.11.2) , ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

i think mean have "fast fail" option available. found fail_fast minitest (test::unit): immediate backtrace & exit article, that's out of date (still covers can done). think you'll need monkeypatch testing library enable option. found gist showing how add simple fail-fast option minitest/turn/minitest-rails might on right track. understand problem first article i've referenced:

when run test::unit suite in ruby on rails 3 project through rake test , test failing, default behavior print “f” or “e”, keep running until tests finished (while twiddle thumbs), , print out stack trace.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -