Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFARQ-160] Propagate JUnit 'failed assumption' exception types from … #435

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

bstansberry
Copy link
Contributor

@bstansberry bstansberry commented Mar 9, 2024

…ServerSetupObserver

https://issues.redhat.com/browse/WFARQ-160

Note there are a couple of TODO comments in ServerSetupObserver, which relate to the JUnit 5 'org.opentest4j.TestAbortedException' class. That is its analogue to the JUnit 4 'org.junit.AssumptionViolatedException' that I deal with here. I left handling that as a TODO because JUnit 5 still handles 'AssumptionViolatedException' if test code throws it. So, ServerSetupTask implementors being able to throw TestAbortedException is more of a nice-to-have.

That said, the code to handle TestAbortedException is probably all there; just a couple lines need uncommenting. The test infrastructure to test it is also mostly there. I just don't have time now to actually set up tests that use @ExtendWith(ArquillianExtension.class) etc.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this seems fine. As a later follow up I'll look at options on how to support for this for TestNG and JUnit 5 as well. This is a good start though.

@jamezp jamezp merged commit b3e6dac into wildfly:main Apr 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants