You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i tried to add the pitest-junit5-plugin to my mutation tester plugin (https://github.com/valantic/mutation-tester) to support junit5. But when adding junit5 with jupiter and vintage engine and this plugin the command line is not correctly executed. The tests dont get picked up to run and so i receive a coverage of 0%. In other stackoverflow requests i read, that you have to adjust it like the maven / gradle plugin and in the gradle docu stands to add the plugin in the gradle task so it changes the value of the testPlugin option. But when i place the --testPlugin option in the command line it gets filtered out. I tried junit, junit5 and TestNg as values.
Here is a sample of the command line i am trying to execute: java -cp "PIT_JARS INCLUDING THE PITEST-JUNIT5-PLUGIN AND JUNIT / JUNIT5" org.pitest.mutationtest.commandline.MutationCoverageReport --targetClasses "my.random.package.*" --"targetTests my.random.package.*Test.java" --reportDir <PATH TO REPORT DIR> --mutators DEFAULT --timeoutConst 4000 --outputFormats HTML --excludedClasses "*Test*" --timeoutFactor 1.25 --maxMutationsPerClass 0 --useClasspathJar true --skipFailingTests true --classPathFile <A WORKING CLASSPATH FILE> --timestampedReports=false --includeLaunchClasspath=true --verbose=true --failWhenNoMutations=true
The text was updated successfully, but these errors were encountered:
Hello,
i tried to add the pitest-junit5-plugin to my mutation tester plugin (https://github.com/valantic/mutation-tester) to support junit5. But when adding junit5 with jupiter and vintage engine and this plugin the command line is not correctly executed. The tests dont get picked up to run and so i receive a coverage of 0%. In other stackoverflow requests i read, that you have to adjust it like the maven / gradle plugin and in the gradle docu stands to add the plugin in the gradle task so it changes the value of the testPlugin option. But when i place the --testPlugin option in the command line it gets filtered out. I tried junit, junit5 and TestNg as values.
Here is a sample of the command line i am trying to execute:
java -cp "PIT_JARS INCLUDING THE PITEST-JUNIT5-PLUGIN AND JUNIT / JUNIT5" org.pitest.mutationtest.commandline.MutationCoverageReport --targetClasses "my.random.package.*" --"targetTests my.random.package.*Test.java" --reportDir <PATH TO REPORT DIR> --mutators DEFAULT --timeoutConst 4000 --outputFormats HTML --excludedClasses "*Test*" --timeoutFactor 1.25 --maxMutationsPerClass 0 --useClasspathJar true --skipFailingTests true --classPathFile <A WORKING CLASSPATH FILE> --timestampedReports=false --includeLaunchClasspath=true --verbose=true --failWhenNoMutations=true
The text was updated successfully, but these errors were encountered: