You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "XN137 (via GitHub)" <gi...@apache.org> on 2026/08/05 10:59:52 UTC
[I] Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 [maven-surefire]
XN137 opened a new issue, #3412:
URL: https://github.com/apache/maven-surefire/issues/3412
### Affected version
3.5.5+
### Bug description
see [comment](https://github.com/apache/maven-surefire/pull/3338#issuecomment-4190810411)
the integration test added in https://github.com/apache/maven-surefire/pull/3338
documents the current (faulty?) behavior.
reverting https://github.com/apache/maven-surefire/commit/b4a53de9b3a9ce02f306f02b064f4f58070678f4 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 [maven-surefire]
Posted by "XN137 (via GitHub)" <gi...@apache.org>.
XN137 commented on issue #3412:
URL: https://github.com/apache/maven-surefire/issues/3412#issuecomment-5251569311
thanks for the fix, but i am wondering:
shouldnt this also get backported to `surefire-3.5.x` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 [maven-surefire]
Posted by "XN137 (via GitHub)" <gi...@apache.org>.
XN137 commented on issue #3412:
URL: https://github.com/apache/maven-surefire/issues/3412#issuecomment-5314992487
> 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 [maven-surefire]
Posted by "olamy (via GitHub)" <gi...@apache.org>.
olamy closed issue #3412: Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5
URL: https://github.com/apache/maven-surefire/issues/3412
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exceptions in junit AfterAll / AfterClass are not reported as error since 3.5.5 [maven-surefire]
Posted by "olamy (via GitHub)" <gi...@apache.org>.
olamy commented on issue #3412:
URL: https://github.com/apache/maven-surefire/issues/3412#issuecomment-5275160757
> 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 https://github.com/apache/maven-surefire/pull/3427
please have a test and let us know if this is fixing your issue with 3.5.x branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org