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

Handle MultipleFailureException thrown by tests #2238

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

labkey-tchad
Copy link
Member

@labkey-tchad labkey-tchad commented Jan 21, 2025

Rationale

Sometimes test use @After or @AfterClass annotations against our recommendation. If a test fails and the after method also throws an exception, JUnit combines the errors into a MultipleFailureException. This can mask the actual error, making BaseWebDriverTest.handleFailure unable to perform its duties (e.g. close alerts). We mostly care about the primary test failure so we can just pull that out of the MultipleFailureException.

Related Pull Requests

  • N/A

Changes

  • Handle MultipleFailureException thrown by tests

@labkey-tchad
Copy link
Member Author

Problematic tests are now collecting screenshots: https://teamcity.labkey.org/buildConfiguration/bt310/3351706

@labkey-tchad labkey-tchad merged commit a036559 into develop Jan 22, 2025
4 checks passed
@labkey-tchad labkey-tchad deleted the fb_handleMultiFailureException branch January 22, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants