diff --git a/src/main/java/eu/stamp_project/testrunner/EntryPoint.java b/src/main/java/eu/stamp_project/testrunner/EntryPoint.java index 619e2694..22ced3d9 100644 --- a/src/main/java/eu/stamp_project/testrunner/EntryPoint.java +++ b/src/main/java/eu/stamp_project/testrunner/EntryPoint.java @@ -250,7 +250,8 @@ public static TestResult runTests(String classpath, String[] fullQualifiedNameOf + String.join(ConstantsHelper.PATH_SEPARATOR, methodNames)), EntryPoint.blackList.isEmpty() ? "" : (ParserOptions.FLAG_blackList + ConstantsHelper.WHITE_SPACE - + String.join(ConstantsHelper.PATH_SEPARATOR, EntryPoint.blackList)) + + String.join(ConstantsHelper.PATH_SEPARATOR, EntryPoint.blackList)), + ParserOptions.FLAG_nbFailingLoadClass, "" + nbFailingLoadClass } ); return EntryPoint.runTests(javaCommand); @@ -353,6 +354,7 @@ public static Coverage runCoverage(String classpath, EntryPoint.coverageDetail == ParserOptions.CoverageTransformerDetail.SUMMARIZED ? "" : (ParserOptions.FLAG_coverage_detail + ConstantsHelper.WHITE_SPACE + EntryPoint.coverageDetail.name()), + ParserOptions.FLAG_nbFailingLoadClass, "" + nbFailingLoadClass }); return EntryPoint.runCoverage(javaCommand); } @@ -460,6 +462,7 @@ public static CoveragePerTestMethod runCoveragePerTestMethods(String classpath, EntryPoint.coverageDetail == ParserOptions.CoverageTransformerDetail.SUMMARIZED ? "" : (ParserOptions.FLAG_coverage_detail + ConstantsHelper.WHITE_SPACE + EntryPoint.coverageDetail.name()), + ParserOptions.FLAG_nbFailingLoadClass, "" + nbFailingLoadClass }); try { EntryPoint.runGivenCommandLine(javaCommand); @@ -564,6 +567,7 @@ public static CoveredTestResultPerTestMethod runCoveredTestResultPerTestMethods( EntryPoint.coverageDetail == ParserOptions.CoverageTransformerDetail.SUMMARIZED ? "" : (ParserOptions.FLAG_coverage_detail + ConstantsHelper.WHITE_SPACE + EntryPoint.coverageDetail.name()), + ParserOptions.FLAG_nbFailingLoadClass, "" + nbFailingLoadClass }); try { EntryPoint.runGivenCommandLine(javaCommand); @@ -657,6 +661,7 @@ public static CoveredTestResultPerTestMethod runOnlineCoveredTestResultPerTestMe EntryPoint.coverageDetail == ParserOptions.CoverageTransformerDetail.SUMMARIZED ? "" : (ParserOptions.FLAG_coverage_detail + ConstantsHelper.WHITE_SPACE + EntryPoint.coverageDetail.name()), + ParserOptions.FLAG_nbFailingLoadClass, "" + nbFailingLoadClass }); try { EntryPoint.runGivenCommandLine(javaCommand); diff --git a/src/main/java/eu/stamp_project/testrunner/runner/ParserOptions.java b/src/main/java/eu/stamp_project/testrunner/runner/ParserOptions.java index 0cbd62a1..b9ee131e 100644 --- a/src/main/java/eu/stamp_project/testrunner/runner/ParserOptions.java +++ b/src/main/java/eu/stamp_project/testrunner/runner/ParserOptions.java @@ -50,6 +50,9 @@ public static ParserOptions parse(String[] args) { case FLAG_coverage_detail: parserOptions.coverageTransformerDetail = CoverageTransformerDetail.valueOf(args[++i]); break; + case FLAG_nbFailingLoadClass: + parserOptions.nbFailingLoadClass = Integer.parseInt(args[++i]); + break; case " ": case "": break; @@ -83,6 +86,9 @@ private static void usage() { usage.append(FLAG_coverage_detail).append(ConstantsHelper.WHITE_SPACE) .append(FLAG_HELP_coverage_detail).append(ConstantsHelper.LINE_SEPARATOR); + usage.append(FLAG_nbFailingLoadClass).append(ConstantsHelper.WHITE_SPACE) + .append(FLAG_HELP_nbFailingLoadClass).append(ConstantsHelper.LINE_SEPARATOR); + System.out.println(usage.toString()); } diff --git a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$1.class b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$1.class index e6e9d388..b34d3c0a 100644 Binary files a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$1.class and b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$1.class differ diff --git a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$CoverageTransformerDetail.class b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$CoverageTransformerDetail.class index 66f84032..c6f82acf 100644 Binary files a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$CoverageTransformerDetail.class and b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions$CoverageTransformerDetail.class differ diff --git a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions.class b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions.class index 50854e91..cc4b8276 100644 Binary files a/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions.class and b/src/main/resources/runner-classes/eu/stamp_project/testrunner/runner/ParserOptions.class differ