I am trying to generate a test coverage report with jmockit within maven-surefire-plugin
When I build my maven project from the base directory : mvn clean package or mvn clean install, I get the following error
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] RestControllerTest.createA_PositiveWorkflow:61 ExceptionInInitializer
[ERROR] RestControllerTest.getAById_PositiveWorkflow:98 NoClassDefFound Could not initialize class mockit.Expectations
[ERROR] RestValidatorTest.validateA1:96 NoClassDefFound Could not initialize class mockit.Expectations
[ERROR] RestValidatorTest.validateA2:115 NoClassDefFound Could not initialize class mockit.Expectations
[ERROR] RestValidatorTest.validateA3:62 NoClassDefFound Could not initialize class mockit.Expectations
[ERROR] RestValidatorTest.validateA4:79 NoClassDefFound Could not initialize class mockit.Expectations
[INFO]
[ERROR] Tests run: 16, Failures: 0, Errors: 6, Skipped: 0
[INFO]
[ERROR]
My project is a multi-module project.
I am trying to generate a test coverage report with jmockit within maven-surefire-plugin
When I build my maven project from the base directory : mvn clean package or mvn clean install, I get the following error
Java Version : Eclipse Temurin 17.0.5.8-hotspot
Maven Version : 3.6.3
Test Dependencies : jUnit, jMockit
Below is my jMockit Coverage configured in maven-surefire-plugin
Please let me know what else I need to do to generate report in defined Output directory.
Note : Running All tests from Intellij Run generated html report but not during Maven build.
Thanks in Advance