-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
It's currently not possible to try and abort test class execution from a ServerSetupTask.
AIUI the way ARQ + WFARQ works is:
1) Call the ServerSetupObserver (as it (@Observes BeforeDeploy).
2) Deploy
3) Invoke any @BeforeClass method.
Users might logically put assumption checks in a ServerSetupTask, because if some environmental condition is not met ServerSetupTask cannot work. But ServerSetupObserver swallows throwables, and that means the 2) Deploy step happens, which may fail due to preconditions from the ServerSetupTask not being met.
Users would likely try and do assumption checks in the @BeforeClass method, but that doesn't work, since those checks are executed after the deploy. This enhancement would not make doing that work, but it would add least provide a reasonably intuitive way to abort execution.
I think simply propagating assumption failure exceptions from ServerSetupObserver will solve this problem. My impression from poking at ARQ code is all three of the items above all execute within the context of JUnit calling a @BeforeClass method; it's just that the ARQ runner interposes steps 1 and 2 before actually calling the method. So I hope just throwing on the assumption failure exception will either be handled nicely by ARQ, or it will propagate on the JUnit logic, which will handle it the same as it handles such an exception from non-ARQ test code.
- duplicates
-
WFARQ-34 Exceptions thrown from ServerSetupTasks should make the test class fail at initialization and no tests should be executed
- Closed
-
WFARQ-23 Assume in ServerSetup should ensure ignoring of tests
- Closed
- is depended on by
-
WFLY-19154 Enable the UnstableApiAnnotationIndexTestCase tests doing deployment.
- Closed
- is incorporated by
-
RESTEASY-3492 Upgrade WildFly Arquillian to 5.1.0.Beta2
- Resolved
-
WFLY-19257 Upgrade WildFly Arquillian from 5.0.1.Final to 5.1.0.Beta2
- Resolved