GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 · Issue #3412 · apache/maven-surefire

Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 #3412

New issue
Copy link
New issue
Copy link
Closed
#3413
Closed
Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5#3412
#3413
Copy link
Labels
bugSomething isn't working

Description

@XN137
XN137
opened on Aug 5, 2026
Issue body actions

Affected version

3.5.5+

Bug description

see comment

the integration test added in #3338
documents the current (faulty?) behavior.

reverting b4a53de brings back the old behavior of reporting class teardown issues as errors.

why this matters:

  • a lot of test infrastructure can do important things on class teardown i.e. check for resource leaks, clean up for the next test etc.
  • even if intentional such a behavior change should not be introduced in a patch version imo

also note that when rerunFailingTestsCount > 0 passing tests are getting rerun on class teardown errors.

Activity

  1. XN137
    added
    bugSomething isn't working
    on Aug 5, 2026
  2. olamy
    added a commit that references this issue on Aug 8, 2026

    fix: report AfterAll/AfterClass exceptions as errors again (#3412) (#…

    92e6174
  3. olamy
    closed this as completedin #3413on Aug 8, 2026
  4. XN137 commented on Aug 11, 2026

    @XN137
    XN137
    on Aug 11, 2026
    ContributorAuthor
    More actions

    thanks for the fix, but i am wondering:
    shouldnt this also get backported to surefire-3.5.x ?

  5. olamy commented on Aug 13, 2026

    @olamy
    olamy
    on Aug 13, 2026
    Member
    More actions

    thanks for the fix, but i am wondering: shouldnt this also get backported to surefire-3.5.x ?

    sounds like a good idea see there #3427
    please have a test and let us know if this is fixing your issue with 3.5.x branch

  6. olamy
    added a commit that references this issue on Aug 13, 2026

    Report AfterAll/AfterClass failures as errors, not flakes (#3412) (#3427

    b6b2b10
  7. XN137 commented on Aug 17, 2026

    @XN137
    XN137
    on Aug 17, 2026
    ContributorAuthor
    More actions

    please have a test and let us know if this is fixing your issue with 3.5.x branch

    since the fix copied the integration tests i had suggested for reproducing this problem, i am quite confident the issue has been addressed.
    i will wait for the next 3.5.x release to confirm once more on our codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.