Bug 543361 [JUnit Report] duration times shall provide ms information
Change-Id: I1c27d0f8aa878e02aa65a3e1d7ff39a5757d8934
diff --git a/plugins/org.eclipse.ease.lang.unittest/src/org/eclipse/ease/lang/unittest/reporters/JUnitReportGenerator.java b/plugins/org.eclipse.ease.lang.unittest/src/org/eclipse/ease/lang/unittest/reporters/JUnitReportGenerator.java
index 0065db5..98f89ca 100644
--- a/plugins/org.eclipse.ease.lang.unittest/src/org/eclipse/ease/lang/unittest/reporters/JUnitReportGenerator.java
+++ b/plugins/org.eclipse.ease.lang.unittest/src/org/eclipse/ease/lang/unittest/reporters/JUnitReportGenerator.java
@@ -77,7 +77,7 @@
suiteNode.putInteger("failures", countTests(testEntity, test -> test.getResults(TestStatus.FAILURE).size()));
suiteNode.putInteger("errors", countTests(testEntity, test -> test.getResults(TestStatus.ERROR).size()));
suiteNode.putInteger("disabled", countTests(testEntity, test -> (TestStatus.DISABLED.equals(test.getStatus())) ? 1 : 0));
- suiteNode.putInteger("time", (int) (testEntity.getDuration() / 1000));
+ suiteNode.putFloat("time", (float) (testEntity.getDuration() / 1000.0));
suiteNode.putString("timestamp", timeFormat.format(testEntity.getStartTimestamp()));
suiteNode.putInteger("id", 0);
@@ -114,7 +114,7 @@
final IMemento testcaseNode = suiteNode.createChild("testcase");
testcaseNode.putString("name", escape(testEntity.getName()));
testcaseNode.putString("classname", escape(getClassName(testEntity)));
- testcaseNode.putInteger("time", (int) (testEntity.getDuration() / 1000));
+ testcaseNode.putFloat("time", (float) (testEntity.getDuration() / 1000.0));
if (TestStatus.DISABLED.equals(testEntity.getStatus())) {
final IMemento skippedNode = testcaseNode.createChild("skipped");
skippedNode.putString("message", escape(testEntity.getResults(TestStatus.DISABLED).get(0).getMessage()));