EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
841 stars 342 forks source link

java.lang.ClassCastException: org.evosuite.testcase.TestChromosome cannot be cast to org.evosuite.testsuite.TestSuiteChromosome #308

Closed jmath675 closed 3 years ago

jmath675 commented 4 years ago

Context

Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve? I am using Evosuite with the following Java Project doop.zip

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue. [If possible, please upload an example of the project you are generating tests for.]

  1. Unzip doop.zip
  2. Run "java -jar evosuite.jar -listClasses -target C:\PATH\TO\doop" and you will see that the classes are visible to evosuite
  3. Run "java -jar evosuite.jar -generateTests -class doopProj2.doopClass3 -projectCP C:\PATH\TO\doop\doopProj2\bin"

Current Result

apanichella commented 4 years ago

Try with the setting: java -jar evosuite.jar -generatMOSuite -Dalgorithm=DYNAMOSA -class doopProj2.doopClass3 -projectCP C:\PATH\TO\doop\doopProj2\bin or java -jar evosuite.jar -generatSuite -class doopProj2.doopClass3 -projectCP C:\PATH\TO\doop\doopProj2\bin