Open janondrusek opened 3 years ago
Please provide the following information:
Version of JMockit that was used: 1.49
Description of the problem or enhancement request: serial-append overrides the coverage.ser between Maven surefire (unit test) and failsafe (integration test) runs.
serial-append
coverage.ser
Relevant parts of pom.xml:
pom.xml
<properties> <jmockit.arg.line> -javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar -Dcoverage-outputDir=target/coverage-report -Dcoverage-output="serial-append,html" -Dcoverage-excludes="com.example.dao.*" </jmockit.arg.line> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>${maven.failsafe.version}</version> <configuration> <argLine>${jmockit.arg.line}</argLine> <encoding>${project.build.sourceEncoding}</encoding> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>${jmockit.arg.line}</argLine> </configuration> </plugin> <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> <version>${maven.lombok.version}</version> <executions> <execution> <id>delombok</id> <phase>generate-sources</phase> <goals> <goal>delombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory> <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> </configuration> </execution> <execution> <id>testDelombok</id> <phase>generate-test-sources</phase> <goals> <goal>testDelombok</goal> </goals> <configuration> <addOutputDirectory>false</addOutputDirectory> <sourceDirectory>${project.basedir}/src/test/java</sourceDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build>
Check the following:
openjdk version "1.8.0_282" OpenJDK Runtime Environment (IcedTea 3.18.0) (build 1.8.0_282-b07 suse-1.3-x86_64)
Please provide the following information:
Version of JMockit that was used: 1.49
Description of the problem or enhancement request:
serial-append
overrides thecoverage.ser
between Maven surefire (unit test) and failsafe (integration test) runs.Relevant parts of
pom.xml
:Check the following: