pitest / pitclipse

Mutation testing for Java in Eclipse IDE. Based on PIT (Pitest).
https://pitest.org
Apache License 2.0
59 stars 17 forks source link

fails to run tests on Eclipse Oxygen #72

Closed yilativs closed 5 years ago

yilativs commented 7 years ago

Fails to run tests on Eclipse Oxygen. Execution throws exception to console:

Closing server
Closed
Exception in thread "main" java.lang.NoSuchMethodError: joptsimple.OptionParser.acceptsAll(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;
    at org.pitest.mutationtest.commandline.OptionsParser.<init>(OptionsParser.java:122)
    at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:36)
    at org.pitest.pitclipse.pitrunner.PitRunner.runPIT(PitRunner.java:46)
    at org.pitest.pitclipse.pitrunner.PitRunner.main(PitRunner.java:25)
velo commented 7 years ago

For me it's failing a well, but it only prints

Error: Could not find or load main class org.pitest.pitclipse.pitrunner.PitRunner
benhjt commented 7 years ago

I can't even get it to install properly. It installs without any errors/warnings but then does not show up in any context menu to run a test class as a PIT mutation test.

jenildesai25 commented 6 years ago

I got same error.

velo commented 6 years ago

FWIW, i build it locally to get it working

On Tue, 28 Nov 2017, 11:04 jenildesai25 notifications@github.com wrote:

I got same error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/philglover/pitclipse/issues/72#issuecomment-347344148, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIVjserlWgMUYKoPsuDfHzOuKzt9j0Wks5s6zH-gaJpZM4Odyks .

jenildesai25 commented 6 years ago

Can you tell me how to build it locally

davidselvaraj commented 6 years ago

I am also getting the same error. I am using STS 3.9.2 and getting the same error as the original poster.

Exception in thread "main" java.lang.NoSuchMethodError: joptsimple.OptionParser.acceptsAll(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;
    at org.pitest.mutationtest.commandline.OptionsParser.<init>(OptionsParser.java:122)
    at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:36)
    at org.pitest.pitclipse.pitrunner.PitRunner.runPIT(PitRunner.java:46)
    at org.pitest.pitclipse.pitrunner.PitRunner.main(PitRunner.java:25)
echebbi commented 5 years ago

Fixed by #80. Will be included in the next release.

echebbi commented 5 years ago

The new 2.0.0 release is finally here and should fix the issue: https://github.com/pitest/pitclipse/releases/tag/v2.0.0