Overview
Currently, any time an aborted/skipped exception is thrown by a TestExecutionListener, the TestContextManager unconditionally logs the exception at WARN level -- or ERROR level for prepareTestInstance() callbacks.
For 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, we should therefore log such exceptions at INFO level.
Test aborted/skipped exceptions
- JUnit Jupiter:
org.opentest4j.TestAbortedException
- JUnit 4
org.junit.AssumptionViolatedException
- TestNG:
org.testng.SkipException
Related Issues
Overview
Currently, any time an aborted/skipped exception is thrown by a
TestExecutionListener, theTestContextManagerunconditionally logs the exception atWARNlevel -- orERRORlevel forprepareTestInstance()callbacks.For 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, we should therefore log such exceptions at
INFOlevel.Test aborted/skipped exceptions
org.opentest4j.TestAbortedExceptionorg.junit.AssumptionViolatedExceptionorg.testng.SkipExceptionRelated Issues