Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to mark a test as pending in MiniTest?

And if this is possible, what is the syntax for this?

like image 286
Lee McAlilly Avatar asked Sep 23 '12 21:09

Lee McAlilly


1 Answers

It took me a few minutes poking around on the RubyDocs to figure out the actual syntax for pulling this off. Figured I'd toss it here to save some future person a few clicks.

From inside your test, simply call the skip() method, like so:

skip("reason for skipping the test") 

The method is MiniTest::Assertions#skip - http://docs.seattlerb.org/minitest/Minitest/Assertions.html#method-i-skip

like image 119
phinze Avatar answered Sep 19 '22 18:09

phinze