Open
Description
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:
$ java -jar dspot-3.1.0-jar-with-dependencies.jar --absolute-path-to-project-root text-analysis/ --verbose
...
WARN] 2020-01-27 23:15:02 ErrorReport - DSpot encountered 1 error(s) during amplification.
Something bad happened when DSpot tried to computed the original mutation score.
This is usually due to the value of the command line option --pit-filter-classes-to-keep.
Specify the filter of classes to keep used by PIT. This allow you restrict the scope of the mutation done by PIT. If this is not specified, DSpot will try to build on the fly a filter that takes into account the largest number of classes, e.g. the topest package.
This is can be also due to a specific configuration of your test suite. If any test fails,
PIT (and so DSpot) won't be able to be executed. Please, check your environment variables,
external files, etc. You can use --excluded-classes and --excluded-test-cases
to exclude respectively specific test classes ans test cases.
java.lang.RuntimeException: java.lang.RuntimeException: Maven build failed! Enable verbose mode for more information (--verbose)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:155)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:161)
at eu.stamp_project.dspot.selector.PitMutantScoreSelector.init(PitMutantScoreSelector.java:109)
at eu.stamp_project.dspot.common.configuration.AmplificationSetup.firstSelectorSetup(AmplificationSetup.java:124)
at eu.stamp_project.dspot.DSpot.onlyAssertionGeneration(DSpot.java:72)
at eu.stamp_project.dspot.DSpot.amplification(DSpot.java:61)
at eu.stamp_project.dspot.DSpot.run(DSpot.java:53)
at eu.stamp_project.Main.main(Main.java:20)
Caused by: java.lang.RuntimeException: Maven build failed! Enable verbose mode for more information (--verbose)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:152)
... 7 more
[INFO] 2020-01-27 23:15:02 OutputReport - The amplification ends up with 0 amplified test methods over 1 test classes.
[INFO] 2020-01-27 23:15:02 OutputReport - Print demo.text.analysis.BalancedBracketsValidatorTest.java with 0 amplified test cases in target/dspot/output//original/
errors_report.txt
$ cat target/dspot/output/errors_report.txt
DSpot encountered 1 error(s) during amplification.
Something bad happened when DSpot tried to computed the original mutation score.
This is usually due to the value of the command line option --pit-filter-classes-to-keep.
Specify the filter of classes to keep used by PIT. This allow you restrict the scope of the mutation done by PIT. If this is not specified, DSpot will try to build on the fly a filter that takes into account the largest number of classes, e.g. the topest package.
This is can be also due to a specific configuration of your test suite. If any test fails,
PIT (and so DSpot) won't be able to be executed. Please, check your environment variables,
external files, etc. You can use --excluded-classes and --excluded-test-cases
to exclude respectively specific test classes ans test cases.
java.lang.RuntimeException: java.lang.RuntimeException: Maven build failed! Enable verbose mode for more information (--verbose)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:155)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:161)
at eu.stamp_project.dspot.selector.PitMutantScoreSelector.init(PitMutantScoreSelector.java:109)
at eu.stamp_project.dspot.common.configuration.AmplificationSetup.firstSelectorSetup(AmplificationSetup.java:124)
at eu.stamp_project.dspot.DSpot.onlyAssertionGeneration(DSpot.java:72)
at eu.stamp_project.dspot.DSpot.amplification(DSpot.java:61)
at eu.stamp_project.dspot.DSpot.run(DSpot.java:53)
at eu.stamp_project.Main.main(Main.java:20)
Caused by: java.lang.RuntimeException: Maven build failed! Enable verbose mode for more information (--verbose)
at eu.stamp_project.dspot.common.automaticbuilder.maven.MavenAutomaticBuilder.runPit(MavenAutomaticBuilder.java:152)