-
Notifications
You must be signed in to change notification settings - Fork 28
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
Does it work with jdk 11 and Junit5? #939
Comments
Hello @tomasalmeida Honestly, I never tried it using java 11 but I doubt a lot it would work. I will try on my side and keep you updated. Thank you. |
I also have a problem with java 11. Im using I get the following errors
The lines saying |
Hello @tomasalmeida, In Dspot, we use by default the version However, it seems that both of them do not support Java 11. On my side, I am able to run DSpot on your project with the following command-line, from the folder mvn clean eu.stamp-project:dspot-maven:3.1.0:amplify-unit-tests -Dverbose=true -Dgregor-mode=true -Dpit-version=1.4.10 Here, I use the maven plugin of DSpot in order to run DSpot on your project (instead of using the jar, which is exactly the same but the maven plugin is easier to use for me). I now detail all the options that I used:
The result of the command line is the following: Test class that has been amplified: demo.text.analysis.BalancedBracketsValidatorTest
The original test suite kills 118 mutants
The amplification results with 0 new tests
it kills 0 more mutants Not so good... but eh, we did succeed to execute DSpot on your tests. I then add some input amplifiers, in order to explore the input space of your tests. I added the following option to the previous command line: -Damplifiers=FastLiteralAmplifier,MethodDuplicationAmplifier,MethodRemove,MethodAdderOnExistingObjectsAmplifier The new result are: Test class that has been amplified: demo.text.analysis.BalancedBracketsValidatorTest
The original test suite kills 118 mutants
The amplification results with 2 new tests
it kills 4 more mutants which is a bit better. I let you play a bit more on your side. You can use different amplifiers, please refer to the README, where you have all the information you need. Please, do not hesitate to ask questions, I'll try to answer you. NB1: The options of the maven plugin are exactly the same than the options of the jar. You just need to put a java -jar dspot.jar --verbose --gregor-mode --pit-version 1.4.10 NB2: When applying DSpot on multi-modules projects, you might encounter difficulties with paths. Here, it seems that it is ok, you might need to use the option @Serranya I'm looking at your issue right now. |
Hi @danglotb do you have any news on this? |
I am trying to configure this plugin with https://github.com/tomasalmeida/mutant-testing/tree/feature/stamp-project, but it says jdk 11 is not supported:
errors_report.txt
The text was updated successfully, but these errors were encountered: