You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JUnit4 assumptions fail the tests when coming from setup() method of a super spec.
When debugging, it looks like the MethodInfo of the setup method does not have any interceptors in the failing case. Specifically, the ExceptionAdapterInterceptor that handles this case in the working case is missing.
Issue description
JUnit4 assumptions fail the tests when coming from
setup()
method of a super spec.When debugging, it looks like the
MethodInfo
of thesetup
method does not have any interceptors in the failing case. Specifically, theExceptionAdapterInterceptor
that handles this case in the working case is missing.How to reproduce
Repository with minimal reproducer: https://github.com/rieske/spock-junit4-assumptions-reproducer
Assumptions are handled correctly when this spec is executed:
Assumptions from super spec's
setup()
method fail as errors when this one is executed:Build-tool dependencies used
The text was updated successfully, but these errors were encountered: