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 /plugins
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java5
1 files changed, 5 insertions, 0 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());
}
}

Back to the top