-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error java.util.NoSuchElementException: None.get after upgrade Stryker version to 0.14.x #1042
Comments
Hi! Thanks for opening this issue. I think this issue might be related to Java versions. I can reproduce this issue by running Stryker with extra debug logging on the linked project with JDK 17, and see this in the output:
This looks related to some outdated libraries that don't properly work with the latest JDK. When I use JDK 11 or 8 Stryker4s runs fine without any errors. What JDK are you trying to run Stryker4s with? And is it possible there are other versions of your JDK installed that might be picked up? If this doesn't sound like your issue, could you try adding Lastly, I think we can also improve on error logging with this. Because like you said |
I use JDK 8 on Stryker4s run, and it still give me errors. Enable debug as your suggestion helps me find unsuccessful tests. However, how could they be unsuccessful tests? All tests in the project are fine when I run sbt test. It just doesn't feel right when I need to exclude unsuccessful tests out while running Stryker. The accuracy of mutation test result won't be correct, since the tests actually exist and some of mutants could have been killed by them. |
Definitely, as many tests as possible should run under Stryker4s. Could you provide any information about the test error message? That might help in finding the issue |
@hugo-vrijswijk
Didn't seem to get unsuccessful test even by putting log in conf file. |
@hugo-vrijswijk Any suggestions on this one? |
@hugo-vrijswijk I also got this but with scalapb. Is version 14 compatible with Scala Protocol Buffer from com.thesamet.scalapb:lenses_2.12:0.9.8? JDK: java version "11.0.13" 2021-10-19 LTS
|
OK I got the answer from https://github.com/stryker-mutator/stryker4s/blob/master/project/plugins.sbt#L8 now. |
@ayush9999-qa sorry for the delayed response, if you're able to add test-runner log output to this issue it is easier for me to debug. Otherwise, I'm not sure if I can help as I wasn't able to really debug the provided repo. |
Summary
Almost all of my projects cannot upgrade Stryker version to 0.14.x, they still remain as 0.13.1 due to receiving
and run last stryker didn't give me more clue though
You can check this example repo to try it out -> https://github.com/tanyagorn/scala-play-realworld-example-app
Stryker4s config
Stryker4s environment
Your Environment
The text was updated successfully, but these errors were encountered: