mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
95e250d4bd
Prior to this commit, any time an aborted/skipped exception was thrown by a TestExecutionListener, the TestContextManager unconditionally logged the exception at WARN level -- or ERROR level for prepareTestInstance() callbacks. Regarding the latter, an aborted/skipped exception is certainly not an ERROR, and in general the associated log output is very verbose (including a stack trace) and not something the user should be warned about it. To improve the user experience, this commit revises TestContextManager so that it logs such exceptions at INFO level. Specifically, the following types of exceptions are considered aborted/skipped exceptions. - JUnit Jupiter: org.opentest4j.TestAbortedException - JUnit 4 org.junit.AssumptionViolatedException - TestNG: org.testng.SkipException Closes gh-31479