Skip to content

Getting Started

Sina edited this page Jul 17, 2017 · 3 revisions

If you are new to EvoSuite, this is a quick guide to get you started. A more advanced guide can be found here.

Overview and Requirements

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

Getting Evosuite

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).

Generating Your First Test Suite

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.

[Optional] IDE Plugins

If you are using an IDE, there are (experimental) EvoSuite plugins available: