-
Notifications
You must be signed in to change notification settings - Fork 344
Getting Started
If you are new to EvoSuite, this is a quick guide to get you started. A more advanced guide can be found here.
The infrastructure you need to run EvoSuite is pretty simple:
- Java 8 JDK
- EvoSuite itself
- Compiled Java class(es) -- (EvoSuite does not require source code)
- [optional] EvoSuite IDE plugins
The latest release of EvoSuite can always be found on Download EvoSuite or here.
You can also clone and build the under-development version of EvoSuite, or download the latest build here (This is not recommended).
After downloading the executable version of evosuite.jar
, you can run EvoSuite on the command line using the general structure below:
java -jar evosuite.jar (action) <target> [options]
For example, if in your current directory, you have a sub-directory classes
inside of which you have a compiled class file HelloWorld.class
, you can generate a test suite for this class by executing:
java -jar evosuite.jar -generateSuite -projectCP "classes" -class HellWorld
For more details on the command line configurations, please visit EvoSuite command-line tutorial.
If you are using an IDE, there are (experimental) EvoSuite plugins available: