Hi everyone,
I’m trying out Camunda Process Test using the official example project from the docs:
-
Docs example: https://docs.camunda.io/docs/apis-tools/testing/getting-started/#examples
-
GitHub repo: https://github.com/camunda/camunda/tree/main/testing/camunda-process-test-example
Environment:
-
Java: 17/21
-
Maven: (default from project, running
mvn clean test) -
Camunda Process Test version: as in the example (
8.9.0-SNAPSHOTfrom the POM) -
Using the default Testcontainers runtime (I did not configure
runtime-mode: remoteor Camunda 8 Run)
What I did:
-
Cloned the example repo.
-
Ran:
mvn clean test -
Tests completed successfully. The relevant part of the Maven output:
[INFO] Results: [INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ -
I then checked
target/coverage-report.
What I see:
-
target/coverage-reportexists. -
Inside, there is a folder
io.camunda.ProcessNestedUnitTestcontaining areport.json. -
There is no
report.htmlanywhere undertarget/coverage-report. -
The Maven log does not contain a line like:
Coverage report: file:///.../target/coverage-report/report.html
According to the docs, after a test run CPT should:
-
Print coverage to the log and
-
Generate HTML and JSON coverage reports in the configured directory (default shown as
target/coverage-report). [Process test coverage; Coverage config]
I have not changed any coverage-related configuration (no custom reportDirectory, no exclusions), and I’m just running the example as-is.
My questions:
-
Is it expected that the example currently only generates
report.jsonand notreport.html? -
Is there any additional configuration needed to enable the HTML report for Camunda Process Test in this example?
-
Could this be a known issue with the current snapshot of the example, or am I missing a step?
Any hints or confirmation from the Camunda team or community would be appreciated.
Thanks & Regards,
Jignesh Pithava