Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-03-11 05:23:34 -0400
committerJuergen Haug2019-03-11 05:23:34 -0400
commitdf4990e4690b28cd109a39804a403a232134c44d (patch)
tree269a4223ef63e2cf97ea5fa4847bf643186cac9f
parentb3ab476b6409654505c2c928f30e8342e778de7b (diff)
downloadorg.eclipse.etrice-df4990e4690b28cd109a39804a403a232134c44d.tar.gz
org.eclipse.etrice-df4990e4690b28cd109a39804a403a232134c44d.tar.xz
org.eclipse.etrice-df4990e4690b28cd109a39804a403a232134c44d.zip
Bug 544839 - [etunit] added test case skip"v_2.0.0-RC9
-rw-r--r--plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java5
-rw-r--r--tests/org.eclipse.etrice.etunit.converter.tests/expects/report1.xml2
2 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java b/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java
index c0b8d80e7..09a7ddb16 100644
--- a/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java
+++ b/plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java
@@ -551,14 +551,19 @@ public class EtUnitReportConverter {
private void computeAndSetInfo(TestsuitesType testsuites) {
for (TestsuiteType ts : testsuites.getTestsuite()) {
int failures = 0;
+ int skipped = 0;
BigDecimal time = new BigDecimal(0);
for (TestcaseType tc : ts.getTestcase()) {
if (tc.getTime()!=null)
time = time.add(new BigDecimal(tc.getTime()));
failures += tc.getFailure().size();
+ skipped += (tc.getSkipped() != null) ? 1 : 0;
}
ts.setTests(Integer.toString(ts.getTestcase().size()));
ts.setFailures(Integer.toString(failures));
+ if(skipped > 0) {
+ ts.setSkipped(Integer.toString(skipped));
+ }
ts.setTime(time.toString());
}
}
diff --git a/tests/org.eclipse.etrice.etunit.converter.tests/expects/report1.xml b/tests/org.eclipse.etrice.etunit.converter.tests/expects/report1.xml
index 9b3f78857..f197cf98d 100644
--- a/tests/org.eclipse.etrice.etunit.converter.tests/expects/report1.xml
+++ b/tests/org.eclipse.etrice.etunit.converter.tests/expects/report1.xml
@@ -10,7 +10,7 @@
</testcase>
<testcase name="TestEtMessageQueue_testMassiveMessaging" time="0.187"/>
</testsuite>
- <testsuite failures="0" name="TestEtMessageService" tests="5" time="0.016">
+ <testsuite failures="0" name="TestEtMessageService" skipped="2" tests="5" time="0.016">
<testcase name="TestEtMessageService_init" time="0.0"/>
<testcase name="TestEtMessageService_GetPushPopReturn" time="0.0"/>
<testcase name="TestEtMessageService_GetReturn" time="0.016"/>

Back to the top