update testName in TEST_END
diff --git a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestCaseElement.java b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestCaseElement.java
index 0a1fdaa..62ae1b7 100755
--- a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestCaseElement.java
+++ b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestCaseElement.java
@@ -15,8 +15,6 @@
import org.eclipse.dltk.testing.model.ITestCaseElement;
-
-
public class TestCaseElement extends TestElement implements ITestCaseElement {
private boolean fIgnored;
@@ -25,16 +23,23 @@
super(parent, id, testName);
Assert.isNotNull(parent);
}
-
+
public void setIgnored(boolean ignored) {
- fIgnored= ignored;
+ fIgnored = ignored;
}
-
+
public boolean isIgnored() {
return fIgnored;
}
-
+
public String toString() {
return "TestCase: " + getTestName() + " : " + super.toString(); //$NON-NLS-1$ //$NON-NLS-2$
}
+
+ /**
+ * @param value
+ */
+ public void setTestName(String value) {
+ super.setTestName(value);
+ }
}
diff --git a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestElement.java b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestElement.java
index a587697..6b7cbbb 100755
--- a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestElement.java
+++ b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestElement.java
@@ -45,7 +45,7 @@
private static final Status[] OLD_CODE = { OK, ERROR, FAILURE };
- private final String fName;
+ private String fName;
private final int fOldCode;
private int failedCode;
@@ -357,4 +357,8 @@
public String toString() {
return getProgressState() + " - " + getTestResult(true); //$NON-NLS-1$
}
+
+ protected void setTestName(String value) {
+ this.fTestName = value;
+ }
}
diff --git a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestRunSession.java b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestRunSession.java
index ec8c522..b51d025 100755
--- a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestRunSession.java
+++ b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/model/TestRunSession.java
@@ -722,6 +722,8 @@
if (testName.startsWith(MessageIds.IGNORED_TEST_PREFIX)) {
testCaseElement.setIgnored(true);
fIgnoredCount++;
+ } else if (!testName.equals(testCaseElement.getTestName())) {
+ testCaseElement.setTestName(testName);
}
if (testCaseElement.getStatus() == Status.RUNNING)