@ Override public void run ( ) { for ( Map . Entry < String , TestSuiteResult > entry : testSuites ) { for ( TestCaseResult testCase : entry . getValue ( ) . getTestCases ( ) ) { markTestcaseAsInterruptedIfNotFinishedYet ( testCase ) ; } entry . getValue ( ) . getTestCases ( ) . add ( createFakeTestcaseWithWarning ( entry . getValue ( ) ) ) ; Allure . LIFECYCLE . fire ( new TestSuiteFinishedEvent ( entry . getKey ( ) ) ) ; } }
Mark unfinished test cases as interrupted for each unfinished test suite then write test suite result