Open bchenghi opened 2 years ago
I am also facing the same issue. Were you able to solve the issue? If yes, how? The information might be helpful for me; thank you.
Hey 🙂
I got around this issue by adding --add-opens
to my java options.
Found this here: https://github.com/x-stream/xstream/issues/262#issuecomment-1247342505 and here: https://issues.sonatype.org/browse/NEXUS-27902
What needs to be added can be read from the line containing the ERROR JDKClassResetter
in the output of EvoSuite.
Hey 🙂
I got around this issue by adding
--add-opens
to my java options. Found this here: x-stream/xstream#262 (comment) and here: https://issues.sonatype.org/browse/NEXUS-27902What needs to be added can be read from the line containing the
ERROR JDKClassResetter
in the output of EvoSuite.
What exactly command did you use? I'm getting same error, i tried to use add-opens
, but no success.
Context
Tried to generate tests as per usual via the CLI. I have java version 17.0.2, maven 3.8.5 and evosuite 1.2.0. It throws
JDKClassResetter
error, followed byNo Converter Available
as shown below.Steps to Reproduce
EvoSuite Arguments
java -jar evosuite/evosuite-1.2.0.jar -class tutorial.Stack -projectCP target/classes
Current Result
Expected result
Expected test cases to be generated.