jacoco test report to exclude specific test task

131 views
Skip to first unread message

Arun Paramasivam

unread,
Jan 13, 2022, 5:10:20 PM1/13/22
to JaCoCo and EclEmma Users
I created specific task in gradle to run as pre-commit
when the jacocoTestReport task is run it is throwing error, Pasted here for reference

[2022-01-13T22:01:28.148Z] + ./gradlew jacocoTestReport --no-daemon

[2022-01-13T22:01:28.580Z] To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.0.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.

[2022-01-13T22:01:30.024Z] Daemon will be stopped at the end of the build

[2022-01-13T22:01:34.516Z] > Task :bootBuildInfo UP-TO-DATE

[2022-01-13T22:01:34.516Z] > Task :generateLombokConfig UP-TO-DATE

[2022-01-13T22:01:34.516Z] > Task :processResources UP-TO-DATE

[2022-01-13T22:01:34.944Z] > Task :compileJava UP-TO-DATE

[2022-01-13T22:01:35.372Z] > Task :generateGitProperties

[2022-01-13T22:01:35.372Z] > Task :classes

[2022-01-13T22:01:35.731Z] > Task :compileTestJava UP-TO-DATE

[2022-01-13T22:01:35.731Z] > Task :processTestResources UP-TO-DATE

[2022-01-13T22:01:35.731Z] > Task :testClasses UP-TO-DATE

[2022-01-13T22:01:35.731Z] > Task :test UP-TO-DATE

[2022-01-13T22:01:36.889Z] > Task :jacocoTestReport FAILED

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] FAILURE: Build failed with an exception.

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] * What went wrong:

[2022-01-13T22:01:36.889Z] Execution failed for task ':jacocoTestReport'.

[2022-01-13T22:01:36.889Z] > Unable to read execution data file /home/ec2-user/workspace/waave_PR-466/build/jacoco/preCommitTest.exec

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] * Try:

[2022-01-13T22:01:36.889Z] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] * Get more help at https://help.gradle.org

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

[2022-01-13T22:01:36.889Z] Use '--warning-mode all' to show the individual deprecation warnings.

[2022-01-13T22:01:36.889Z]

[2022-01-13T22:01:36.889Z] BUILD FAILED in 8s

[2022-01-13T22:01:36.889Z] 9 actionable tasks: 2 executed, 7 up-to-date

script returned exit code 1

Reply all
Reply to author
Forward
0 new messages