TimeoutExtension outcome classification: failure vs error for timed-out tests
JUnit 5's TimeoutExtension currently reports a test that exceeds its @Timeout limit as a failure by throwing org.opentest4j.TestTimedOutException . The extension uses a watchdog thread that interrupts the test thread; if the test code does not respond to interruption, the extension still marks the test as failed rather than treating it as an error or a disti