Hi team,
Been trying to search for help on this. I have a pipeline that Bazel builds a
microservice.
When It comes to code coverage, I get the below failure message from Jenkins.
Can you help me why I'm getting this error, i'm not an expert of Jacoco.
Jenkins log:
04:44:04.622 INFO: Analysing /tmp/jacoco.exec
04:44:05.321 INFO:
------------------------------------------------------------------------
04:44:05.321 INFO: EXECUTION FAILURE
04:44:05.321 INFO:
------------------------------------------------------------------------
04:44:05.322 INFO: Total time: 27.614s
04:44:05.630 INFO: Final Memory: 22M/2266M
04:44:05.630 INFO:
------------------------------------------------------------------------
04:44:05.630 ERROR: Error during SonarQube Scanner execution
04:44:05.630 ERROR: Unable to read /tmp/jacoco.exec
04:44:05.630 ERROR: Caused by: malformed input around byte 32
04:44:05.630 ERROR:
04:44:05.631 ERROR: Re-run SonarQube Scanner using the -X switch to enable full
debug logging.
[Pipeline] }
## Junit
java_test(
name = "SomeClass",
srcs = [
"src/test/java/com/someclass/SomeClass.java",
],
test_class = "com.SomeClassTeat",
deps = [
"SomeTest",
"@javax_servlet_javax_servlet_api//jar",
"@org_springframework_spring_test//jar",
"@org_springframework_spring_web//jar",
"@org_mockito_mockito_core//jar",
"@net_bytebuddy_byte_buddy//jar",
"//commons-api/commons-api-server:CommonsApiServer",
],
size = "small",
jvm_flags =
["-javaagent:/tmp/jacocoagent-runtime.jar=destfile=/tmp/jacoco.exec"]
)
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/43f55083-c0dd-4040-9051-7f1cc26d2c34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.