evosuite-plus-plus icon indicating copy to clipboard operation
evosuite-plus-plus copied to clipboard

Unable to generate JUnit test files using evosuite-shell jar file

Open ongaaron96 opened this issue 4 years ago • 2 comments

Context

Unable to generate JUnit test files using evosuite-shell jar file.

Steps to Reproduce

Following the steps from https://www.evosuite.org/documentation/tutorial-part-1/, evosuite can generate the JUnit test files when you run this command, using the evosuite jar file provided in the website: image

However replacing the evosuite jar file with evosuite-shell jar file, causes this message: image

EvoSuite Arguments

java -jar evosuite-shell-1.0.7-SNAPSHOT.jar -class <class-name> -projectCP <class-path>

Current Result

NA

Expected result

NA

Additional info

NA

ongaaron96 avatar Sep 04 '20 11:09 ongaaron96

Properties.JUNIT_TESTS shall be true Properties.TEST_DIR shall be set as well.

llmhyy avatar Sep 04 '20 16:09 llmhyy

use -Djunit_tests="true" -Dtest_dir="../../", then have another try

llmhyy avatar Sep 04 '20 16:09 llmhyy