mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
New test runners: do not set test duration to 0 explicitly
* See commend in code
This commit is contained in:
+5
-1
@@ -178,7 +178,11 @@ public class GeneralIdBasedToSMTRunnerEventsConvertor extends GeneralTestEventsP
|
||||
Node node = findNodeToTerminate(testFinishedEvent);
|
||||
if (node != null) {
|
||||
SMTestProxy testProxy = node.getProxy();
|
||||
testProxy.setDuration(testFinishedEvent.getDuration());
|
||||
if (testFinishedEvent.getDuration() != 0) {
|
||||
// Setting 0 here explicitly stops test from calculating its duration based on its children
|
||||
// 0 is almost always means we did not get it any duration from test runner, so it is sane to calculate it based on parent
|
||||
testProxy.setDuration(testFinishedEvent.getDuration());
|
||||
}
|
||||
testProxy.setFrameworkOutputFile(testFinishedEvent.getOutputFile());
|
||||
testProxy.setFinished();
|
||||
if (node.getState() != State.FAILED) {
|
||||
|
||||
Reference in New Issue
Block a user