Skip to content
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

pitest command line junit5 support #80

Closed
fhuesig opened this issue May 3, 2023 · 2 comments
Closed

pitest command line junit5 support #80

fhuesig opened this issue May 3, 2023 · 2 comments

Comments

@fhuesig
Copy link

fhuesig commented May 3, 2023

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

@fhuesig
Copy link
Author

fhuesig commented May 3, 2023

or is the plugin not compatible to run with the pitest command line?

@fhuesig fhuesig changed the title pitest command line pitest command line junit5 support May 3, 2023
@fhuesig
Copy link
Author

fhuesig commented Jun 7, 2023

resolved in hcoles/pitest#1196

@fhuesig fhuesig closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant