public class TestSuiteLocalSearch extends Object implements LocalSearch<TestSuiteChromosome>
DSE_PROBABILITY and LOCAL_SEARCH_DSE
one of the following three modes is applied:
- apply DSE on all test cases
- apply AVM on all test cases
- apply DSE on some tests and AVM on other tests| Constructor and Description |
|---|
TestSuiteLocalSearch() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doSearch(TestSuiteChromosome suite,
LocalSearchObjective<TestSuiteChromosome> objective)
Applies local search to the suite targeting the objective passed as
parameter.
|
protected static void |
ensureDoubleExecution(TestSuiteChromosome individual,
LocalSearchObjective<TestSuiteChromosome> objective)
Ensure that all branches are executed twice For each branch such that
exists only one test case in the suite that covers that branch, it
creates a duplicate of that test case.
|
static TestSuiteLocalSearch |
selectTestSuiteLocalSearch()
Decides the kind of local search that will be applied to the Test Suite.
|
public static TestSuiteLocalSearch selectTestSuiteLocalSearch()
TestSuiteLocalSearch instance to use for local
searchprotected static void ensureDoubleExecution(TestSuiteChromosome individual, LocalSearchObjective<TestSuiteChromosome> objective)
public boolean doSearch(TestSuiteChromosome suite, LocalSearchObjective<TestSuiteChromosome> objective)
DSE_PROBABITY and LOCAL_SEARCH_DSE properties.doSearch in interface LocalSearch<TestSuiteChromosome>suite - the test suite to apply local search onobjective - the local search objectiveCopyright © 2010–2017 EvoSuite. All rights reserved.