djcrankypants / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

JUnit-compliant behavior when a TestRule swallows an exception #240

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When a TestRule swallows an exception thrown from a test method, the test will 
nevertheless be reported as failed by Spock. We should change this so that it 
behaves like in JUnit.

Original issue reported on code.google.com by pnied...@gmail.com on 29 Feb 2012 at 6:07

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 4 Oct 2012 at 6:47

GoogleCodeExporter commented 8 years ago
Another difference is that with Spock, `base.evaluate()` will not throw an 
exception even if the test method did. This means that `TestWatcher` rules 
won't work correctly.

Original comment by pnied...@gmail.com on 15 Mar 2013 at 11:01

GoogleCodeExporter commented 8 years ago
Is there any workaround for this one? Or just use deprecated MethodRules?

Original comment by reginald...@gmail.com on 19 Jul 2013 at 7:08

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 1 Mar 2015 at 11:45