-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution default-cli of goal org.pitest:pitest-maven:1.4.7:mutationCoverage failed: This feature requires ASM7 #108
Comments
Hi, Can you please share the version of Descartes that you are using? |
Hi, I'm using pitest-maven 1.4.7 and descartes 1.2.5. My java version is 11 and maven configured as: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>7.0</version> <!-- Use newer version of ASM -->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.3.2</version>
</dependency>
</dependencies>
<configuration>
<parallel>methods</parallel>
<threadCount>10</threadCount>
<environmentVariables>
<!-- limit log for endpoint test-->
<LOGGING_LEVEL>ERROR</LOGGING_LEVEL>
</environmentVariables>
</configuration>
</plugin> |
Hi Oscar, <plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.4.9</version>
<executions>
<execution>
<id>pitest-check</id>
<phase>test</phase>
<goals>
<goal>mutationCoverage</goal>
</goals>
</execution>
</executions>
<configuration>
<mutationEngine>descartes</mutationEngine>
<threads>1</threads>
</configuration>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>eu.stamp-project</groupId>
<artifactId>descartes</artifactId>
<version>1.2.5</version>
</dependency>
</dependencies>
</plugin> I will ask students more information about their configuration. |
We have the same problem in our project, this is why we cannot use Descartes. |
I have the same issue. Java version: OpenJDK 13.0.1 Error message:
|
I have the same issue. Java version: OpenJDK 11.0.6_10 Error mesage:
I can see that:
UPDATE: Remove descartes fix the problem ... |
@arnobl Is it possible to have a link to one of the projects that failed for your students? |
#122 finally solves this issue. |
Hi, can you tell me when you want to perform a new version of plugin with this fix ? |
@bcarriou I'm waiting for some pull requests from external collaborators, but it shouldn't be too long. Also I'm hesitating to support newer PIT versions, since there are issues in how the coverage is being collected, for example hcoles/pitest#746 and hcoles/pitest#720 |
I'm having a similar problem. My Jdk version is as below: @localhost:/data/data/com.termux/files/home/DSAlgos[root@localhost DSAlgos]# java --version openjdk 11.0.8 2020-07-14 OpenJDK Runtime Environment (build 11.0.8+10) OpenJDK 64-Bit Server VM (build 11.0.8+10, mixed mode) The following is the stack trace: ----------------------------------- [ERROR] Failed to execute goal org.pitest:pitest-maven:1.5.2:mutationCoverage (descartes-report) on project DSAlgos: Execution descartes-report of goal org.pitest:pitest-maven:1.5.2:mutationCoverage failed: This feature requires ASM7 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.pitest:pitest-maven:1.5.2:mutationCoverage (descartes-report) on project DSAlgos: Execution descartes-report of goal org.pitest:pitest-maven:1.5.2:mutationCoverage failed: This feature requires ASM7 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution descartes-report of goal org.pitest:pitest-maven:1.5.2:mutationCoverage failed: This feature requires ASM7 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.UnsupportedOperationException: This feature requires ASM7 at org.pitest.reloc.asm.ClassVisitor.visitNestHost (ClassVisitor.java:159) at org.pitest.reloc.asm.ClassReader.accept (ClassReader.java:559) at org.pitest.reloc.asm.ClassReader.accept (ClassReader.java:401) at eu.stamp_project.mutationtest.descartes.DescartesMutater.getMutationPoints (DescartesMutater.java:40) at eu.stamp_project.mutationtest.descartes.DescartesMutater.findMutations (DescartesMutater.java:34) at org.pitest.mutationtest.build.MutationSource.createMutations (MutationSource.java:55) at org.pitest.mutationtest.build.MutationTestBuilder.lambda$classToMutations$0 (MutationTestBuilder.java:90) at org.pitest.functional.FCollection.flatMapTo (FCollection.java:51) at org.pitest.functional.FCollection.flatMap (FCollection.java:61) at org.pitest.mutationtest.build.MutationTestBuilder.createMutationTestUnits (MutationTestBuilder.java:58) at org.pitest.mutationtest.tooling.MutationCoverage.buildMutationTests (MutationCoverage.java:281) at org.pitest.mutationtest.tooling.MutationCoverage.runReport (MutationCoverage.java:135) at org.pitest.mutationtest.tooling.EntryPoint.execute (EntryPoint.java:121) at org.pitest.mutationtest.tooling.EntryPoint.execute (EntryPoint.java:51) at org.pitest.maven.RunPitStrategy.execute (RunPitStrategy.java:35) at org.pitest.maven.AbstractPitMojo.analyse (AbstractPitMojo.java:463) at org.pitest.maven.AbstractPitMojo.execute (AbstractPitMojo.java:404) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] |
@Fernal73 this should be solved with the latest version. |
Hi, can someone please help me on the same case I am getting below error [�[1;31mERROR�[m] Failed to execute goal �[32morg.pitest:pitest-maven:1.14.4:mutationCoverage�[m �[1m(default-cli)�[m on project �[36mnumeric�[m: �[1;31mExecution default-cli of goal org.pitest:pitest-maven:1.14.4:mutationCoverage failed: Unknown listener requested in XCL,HTML�[m right now my pom.xml code is
|
Hi,
I'm trying to use pitest for JDK 11 project as it's described basicly in the documentation and got the following error: Failed to execute goal org.pitest:pitest-maven:1.4.7:mutationCoverage (default-cli) on project commons: Execution default-cli of goal org.pitest:pitest-maven:1.4.7:mutationCoverage failed: This feature requires ASM7
Yet I have asm 7 dependency in my maven-compiler-plugin.
The text was updated successfully, but these errors were encountered: