EvoSuite / evosuite

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

evosuite doesn't generate tests with a different GA #442

Open sianico93 opened 1 year ago

sianico93 commented 1 year ago

Context

for university purposes i'm trying to extend evosuite. before i'm tryng to run it first with a different GA, without success.

Steps to Reproduce

after compile evosuite with maven, following the tutorial on the website, i try to run evosuite having changed some parameters like GA. reading the documentation, the command line i wrote is this: $EvoSuite -class tutorial.Stack -projectCP Tutorial_Stack/target/classes/ -Dalgorithm=CELLULAR_GA where "EvoSuite" is the export where i declare the command "java -jar path_evosuite-master.jar"

Result

the result is this:

*** Conclusion if I have not misunderstood, the system runs using the GA chosen, but fails to generate tests. can anyone help me to understand how to use it with different ga successfully?

jose commented 1 year ago

You might need to also include -generateSuite at the end of your command. Long story short, MOSA and DynaMOSA require -generateMOSuite (which is currently the default behaviour) and any other GA requires -generateSuite. (This should perhaps be better documented.)

jose commented 1 year ago

You might need to also include -generateSuite at the end of your command. Long story short, MOSA and DynaMOSA require -generateMOSuite (which is currently the default behaviour) and any other GA requires -generateSuite. (This should perhaps be better documented.)