mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't count the same test twice in statistics if testFailed is followed by testFinished
This commit is contained in:
+8
-1
@@ -178,7 +178,14 @@ public class GeneralIdBasedToSMTRunnerEventsConvertor extends GeneralTestEventsP
|
||||
testProxy.setDuration(testFinishedEvent.getDuration());
|
||||
testProxy.setFrameworkOutputFile(testFinishedEvent.getOutputFile());
|
||||
testProxy.setFinished();
|
||||
fireOnTestFinished(testProxy);
|
||||
if (node.getState() != State.FAILED) {
|
||||
// Don't count the same test twice if 'testFailed' message is followed by 'testFinished' message
|
||||
// which may happen if generated TeamCity messages adhere rules from
|
||||
// https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity
|
||||
// Anyway, this id-based converter already breaks TeamCity protocol by expecting messages with
|
||||
// non-standard TeamCity attributes: 'nodeId'/'parentNodeId' instead of 'name'.
|
||||
fireOnTestFinished(testProxy);
|
||||
}
|
||||
terminateNode(node, State.FINISHED);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user