From 425619ad7fc4d0bdc2c01e89dd07c47eb3d1cdc1 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 3 Jun 2011 17:58:01 +0400 Subject: [PATCH] multiple suite files in one suite: start time from the first suite - end time from the last suite; last suite should stop running (IDEA-69717) --- .../src/com/theoryinpractice/testng/ui/TestNGResults.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java b/plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java index 38791d5d602d..c1d96ecc6d30 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java +++ b/plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java @@ -332,14 +332,15 @@ public class TestNGResults extends TestResultsPanel implements TestFrameworkRunn } public void start() { - start = System.currentTimeMillis(); + if (start == 0) { + start = System.currentTimeMillis(); + } tree.getSelectionModel().setSelectionPath(new TreePath(treeBuilder.getNodeForElement(rootNode))); rootNode.setInProgress(true); rootNode.setStarted(true); } public void finish() { - if (end > 0) return; if (start > 0) { end = System.currentTimeMillis(); }