GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix: report AfterAll/AfterClass exceptions as errors again (#3412) by arimu1 · Pull Request #3413 · apache/maven-surefire Conversation
Contributor
SummaryFixes #3412 Since Surefire 3.5.5, exceptions thrown from JUnit This regressed when BeforeAll flake handling treated any class-level failure with a null / FixIn
Reporter special-casing for flaky BeforeAll is limited to Manual verification (Temurin 21, installed SNAPSHOT plugin)@afterall always fails: @afterall + @afterclass (JUnit 4 / vintage): same — @BeforeAll always fails: still Checklist
Tests
Related
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsSince 3.5.5, class-level teardown failures (@afterall / @afterclass) were misclassified as flaky BeforeAll failures whenever any test method in the same class had succeeded. That made errors disappear from suite totals, turned deterministic teardown failures into flakes, and needlessly re-ran already-passing tests when rerunFailingTestsCount was set. Distinguish setup vs teardown at the JUnit Platform adapter: - Before any test method succeeds → initializationError (flaky-BeforeAll path) - After a successful test method → executionError (real error, not re-run) Keep BeforeAll flake special-casing for initializationError only. Signed-off-by: arimu1 <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
6 tasks
olamy
added a commit
that referenced
this pull request
) Backport of #3413 (da16ec2) from master, adapted for 3.5.x. The JUnit Platform provider now names post-success container failures "executionError" so the reporter keeps them as real errors instead of misclassifying them as flaky @BeforeAll failures. Signed-off-by: Olivier Lamy <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
bug
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |