aliakhtar / spock

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

thrown() assertion failures include spock code in stracktrace #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
junit.framework.AssertionFailedError: Expected exception 
java.lang.IllegalStateException, but no 
exception was thrown
    at spock.lang.Specification.thrown(Specification.java:218)

Would be better for the user if that stack frame was filtered out.

Original issue reported on code.google.com by lda...@gmail.com on 24 Feb 2010 at 4:45

GoogleCodeExporter commented 8 years ago
So far we don't filter any Specification methods, but it could certainly be 
done.
Unrelated question: Is it still necessary to convert Spock exceptions to JUnit3 
AssertionFailedError's in the Grails 
plugin?

Original comment by pnied...@gmail.com on 1 Mar 2010 at 12:08