exception from junit..fail() gets eaten

7 views
Skip to first unread message

Barry Kaplan

unread,
Dec 14, 2009, 6:18:04 PM12/14/09
to Spock Framework
In my setupSpeck() junit's fail is invoked(). The result is the test
terminates but no message or exception is displayed (in Idea at
least).

Should I be using something else to fail fast?

Peter Niederwieser

unread,
Dec 14, 2009, 6:31:54 PM12/14/09
to Spock Framework
Hi Barry,

I suggest to use "assert false" instead of JUnit's fail(). You can
also add a message:
assert false, "this should not have happened"

That said, I suppose you still won't see an exception. Can you please
file an issue (http://issues.spockframework.org)?

Cheers,
Peter
Reply all
Reply to author
Forward
0 new messages