Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online instrumentation mode #117

Merged
merged 6 commits into from
Aug 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace coveralls with codecov
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
andre15silva committed Aug 23, 2021
commit d8c937d7e4d214c4548064560a5f7124befc1c64
5 changes: 4 additions & 1 deletion src/main/java/eu/stamp_project/testrunner/EntryPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public static CoveredTestResultPerTestMethod runOnlineCoveredTestResultPerTestMe
getJavaCommand(),
(classpath + ConstantsHelper.PATH_SEPARATOR + ABSOLUTE_PATH_TO_RUNNER_CLASSES
+ ConstantsHelper.PATH_SEPARATOR + ABSOLUTE_PATH_TO_JACOCO_DEPENDENCIES).replaceAll(" ", "%20"),
"-javaagent:" + jacocoAgentJar.getAbsolutePath() + "=dumponexit=false" +
"-javaagent:" + jacocoAgentJar.getAbsolutePath() + "=destfile=test-runner.exec,dumponexit=false" +
(EntryPoint.jacocoAgentIncludes != null ? (",includes=" + EntryPoint.jacocoAgentIncludes) : "") +
(EntryPoint.jacocoAgentIncludes != null ? (",excludes=" + EntryPoint.jacocoAgentExcludes) : ""),
EntryPoint.jUnit5Mode ? EntryPoint.JUNIT5_ONLINE_JACOCO_RUNNER_COVERED_RESULT_PER_TEST_QUALIFIED_NAME : EntryPoint.JUNIT4_ONLINE_JACOCO_RUNNER_COVERED_RESULT_PER_TEST_QUALIFIED_NAME,
Expand All @@ -658,6 +658,9 @@ public static CoveredTestResultPerTestMethod runOnlineCoveredTestResultPerTestMe
LOGGER.warn("Timeout when running {}", javaCommand);
throw e;
}
// Delete test-runner.exec file
new File(EntryPoint.workingDirectory, "test-runner.exec").delete();

final CoveredTestResultPerTestMethod load = OnlineCoveredTestResultPerTestMethodImpl.load();
if (EntryPoint.verbose) {
LOGGER.info("Coverage per test methods has been computed {}{}", ConstantsHelper.LINE_SEPARATOR,
Expand Down