public class ContinuousTestGeneration extends Object
This is the main entry point for the new paradigm "Continuous Test Generation" (CTG). This can be called directly from EvoSuite for experiment reasons, but its usage for practitioners will be based on build environments like Maven/Ant and continuous integration environments like Jenkins/Hudson/Bamboo
In a nutshell, the idea is for a project to keep track/store the best test suite for each class in the project. Each time CTG is run (and can be run continuously), we try to generate test suites for classes we haven't addressed yet, and we try to improve the current ones (by seeding). Benefits are for example:
CTG can also be configured to "call home". This will be useful to see how EvoSuite is used in practice.
TODO we should also have an option "regression" to run current test suites, and see if any fails. Even if do not want to explicitly do regression, we might still have to run old test cases, as failing ones should be (re)moved and labelled as "regression-failing"
TODO need also option to automatically commit to repository any new, better test
| Constructor and Description |
|---|
ContinuousTestGeneration(String target,
String projectClassPath,
String prefix,
CtgConfiguration conf,
String[] cuts,
String exportFolder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clean()
Clean all persistent data (eg files on disk) that
CTG has created so far
|
String |
execute()
Apply CTG, and return a string with some summary
|
static boolean |
exportToFolder(String baseFolder,
String exportFolder) |
String |
info()
Get info on the current test cases in the database
|
static File |
resolveExportFolder(String baseFolder,
String exportFolder) |
public String execute()
public static boolean exportToFolder(String baseFolder, String exportFolder) throws IOException
IOExceptionpublic boolean clean()
public String info()
Copyright © 2010–2016 EvoSuite. All rights reserved.