| Modifier and Type | Method and Description |
|---|---|
static void |
TestSuiteGeneratorHelper.addAssertions(TestSuiteChromosome tests) |
protected void |
TestSuiteGenerator.postProcessTests(TestSuiteChromosome testSuite)
Apply any readability optimizations and other techniques that should use
or modify the generated tests
|
static TestGenerationResult |
TestSuiteGenerator.writeJUnitTestsAndCreateResult(TestSuiteChromosome testSuite) |
static TestGenerationResult |
TestSuiteGenerator.writeJUnitTestsAndCreateResult(TestSuiteChromosome testSuite,
String suffix)
If Properties.JUNIT_TESTS is set, this method writes the given test cases
to the default directory Properties.TEST_DIR.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleMutationAssertionGenerator.addAssertions(TestSuiteChromosome suite) |
void |
AssertionGenerator.addAssertions(TestSuiteChromosome suite)
Add assertions to all tests in a test suite
|
protected void |
AssertionGenerator.changeClassLoader(TestSuiteChromosome suite) |
void |
AssertionGenerator.filterFailingAssertions(TestSuiteChromosome testSuite) |
protected void |
MutationAssertionGenerator.restoreCriterion(TestSuiteChromosome suite)
Set the criterion to whatever it was before
|
void |
MutationAssertionGenerator.setupClassLoader(TestSuiteChromosome suite)
If we are not doing mutation testing anyway, then we need to reinstrument
the code to get the mutants now
|
void |
AssertionGenerator.setupClassLoader(TestSuiteChromosome suite)
Reinstrument to make sure final fields are removed
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CoverageCriteriaAnalyzer.analyzeCoverage(TestSuiteChromosome testSuite) |
static void |
CoverageCriteriaAnalyzer.analyzeCoverage(TestSuiteChromosome testSuite,
Properties.Criterion criterion) |
static void |
CoverageCriteriaAnalyzer.analyzeCriteria(TestSuiteChromosome testSuite,
String criteria) |
double |
TestFitnessFactory.getFitness(TestSuiteChromosome suite)
Gets the fitness for suite if the goals from this TestFitnessFactory are
applied.
|
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
TestsArchive.createMergedSolution(TestSuiteChromosome suite) |
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
TestsArchive.createMergedSolution(TestSuiteChromosome suite) |
| Modifier and Type | Method and Description |
|---|---|
int |
IBranchSecondaryObjective.compareChromosomes(TestSuiteChromosome chromosome1,
TestSuiteChromosome chromosome2) |
int |
IBranchSecondaryObjective.compareGenerations(TestSuiteChromosome parent1,
TestSuiteChromosome parent2,
TestSuiteChromosome child1,
TestSuiteChromosome child2) |
| Modifier and Type | Method and Description |
|---|---|
void |
JUnitTestSuite.runSuite(TestSuiteChromosome chromosome)
runSuite
|
| Constructor and Description |
|---|
NumberedTestNameGenerationStrategy(TestSuiteChromosome suite) |
| Modifier and Type | Class and Description |
|---|---|
class |
RegressionTestSuiteChromosome |
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
RegressionTestSuiteChromosome.clone() |
TestSuiteChromosome |
RegressionTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionSuiteMinimizer.minimize(TestSuiteChromosome suite) |
| Modifier and Type | Method and Description |
|---|---|
static ObjectPool |
ObjectPool.getPoolFromTestSuite(TestSuiteChromosome testSuite)
Convert a test suite to a pool
|
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
RandomMethodSeedingTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
RandomIndividualTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
BIMutatedMethodSeedingTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
BIMethodSeedingTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
BIAndRITestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
BestIndividualTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
| Constructor and Description |
|---|
BestIndividualTestSuiteChromosomeFactory(ChromosomeFactory<TestSuiteChromosome> defaultFactory,
TestSuiteChromosome bestIndividual)
Constructor for JUnitTestSuiteChromosomeFactory.
|
BIMethodSeedingTestSuiteChromosomeFactory(ChromosomeFactory<TestSuiteChromosome> defaultFactory,
TestSuiteChromosome bestIndividual)
Constructor for JUnitTestSuiteChromosomeFactory.
|
BIMutatedMethodSeedingTestSuiteChromosomeFactory(ChromosomeFactory<TestSuiteChromosome> defaultFactory,
TestSuiteChromosome bestIndividual)
Constructor for JUnitTestSuiteChromosomeFactory.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
StatisticsSender.executedAndThenSendIndividualToMaster(TestSuiteChromosome testSuite)
First execute (if needed) the test cases to be sure to have latest correct data,
and then send it to Master
|
protected abstract T |
ChromosomeOutputVariableFactory.getData(TestSuiteChromosome individual) |
protected abstract T |
SequenceOutputVariableFactory.getValue(TestSuiteChromosome individual) |
T |
DirectSequenceOutputVariableFactory.getValue(TestSuiteChromosome individual) |
OutputVariable<T> |
ChromosomeOutputVariableFactory.getVariable(TestSuiteChromosome chromosome) |
void |
SequenceOutputVariableFactory.update(TestSuiteChromosome individual) |
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
WholeTestSuiteStrategy.generateTests() |
abstract TestSuiteChromosome |
TestGenerationStrategy.generateTests()
Generate a set of tests; assume that all analyses are already completed
|
TestSuiteChromosome |
RegressionSuiteStrategy.generateTests() |
TestSuiteChromosome |
RandomTestStrategy.generateTests() |
TestSuiteChromosome |
MOSuiteStrategy.generateTests() |
TestSuiteChromosome |
IndividualTestStrategy.generateTests() |
TestSuiteChromosome |
FixedNumRandomTestStrategy.generateTests() |
TestSuiteChromosome |
EntBugTestStrategy.generateTests() |
| Modifier and Type | Method and Description |
|---|---|
protected ChromosomeFactory<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getChromosomeFactory() |
protected GeneticAlgorithm<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getGeneticAlgorithm(ChromosomeFactory<TestSuiteChromosome> factory) |
GeneticAlgorithm<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getSearchAlgorithm() |
protected SecondaryObjective<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getSecondarySuiteObjective(String name)
getSecondarySuiteObjective
|
protected SelectionFunction<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getSelectionFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
TestGenerationStrategy.isFinished(TestSuiteChromosome chromosome,
StoppingCondition stoppingCondition)
Check if the budget has been used up.
|
| Modifier and Type | Method and Description |
|---|---|
protected GeneticAlgorithm<TestSuiteChromosome> |
PropertiesSuiteGAFactory.getGeneticAlgorithm(ChromosomeFactory<TestSuiteChromosome> factory) |
protected void |
PropertiesSuiteGAFactory.getSecondaryObjectives(GeneticAlgorithm<TestSuiteChromosome> algorithm) |
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
DSEStrategy.generateTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
ConstantInliner.inline(TestSuiteChromosome suite)
inline
|
boolean |
TestFitnessFunction.isCoveredBy(TestSuiteChromosome testSuite) |
void |
ValueMinimizer.minimize(TestSuiteChromosome suite,
TestSuiteFitnessFunction objective)
minimize
|
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
JUnitTestCarvedChromosomeFactory.getCarvedTestSuite() |
| Constructor and Description |
|---|
DSETestCaseLocalSearch(TestSuiteChromosome suite)
Creates a DSE local search for a test case that belongs to a whole test
suite
|
DSETestGenerator(TestSuiteChromosome suite)
Creates a new test generator using a test suite.
|
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
TestSuiteChromosome.clone()
clone
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RegressionSuiteSerializer.appendToRegressionTestSuite(TestSuiteChromosome testSuite) |
double |
TestSuiteFitnessFunc_to_TestFitnessFactory_Adapter.getFitness(TestSuiteChromosome suite)
Gets the fitness for suite if the goals from this TestFitnessFactory are
applied.
|
double |
AbstractFitnessFactory.getFitness(TestSuiteChromosome suite)
Gets the fitness for suite if the goals from this TestFitnessFactory are
applied.
|
void |
TestSuiteMinimizer.minimize(TestSuiteChromosome suite,
boolean minimizePerTest)
minimize
|
static boolean |
TestSuiteSerialization.saveTests(TestSuiteChromosome ts,
File target) |
| Modifier and Type | Method and Description |
|---|---|
static void |
TestSuiteChromosome.removeSecondaryObjective(SecondaryObjective<TestSuiteChromosome> objective)
Remove secondary objective from list, if it is there
|
static boolean |
TestSuiteSerialization.saveTests(List<TestSuiteChromosome> list,
File target) |
static boolean |
TestSuiteSerialization.saveTests(List<TestSuiteChromosome> ts,
File folder,
String fileName) |
| Constructor and Description |
|---|
TestSuiteChromosome(TestSuiteChromosome source)
Constructor for TestSuiteChromosome.
|
| Modifier and Type | Method and Description |
|---|---|
TestSuiteChromosome |
TestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
SerializationSuiteChromosomeFactory.getChromosome() |
TestSuiteChromosome |
JUnitTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
TestSuiteChromosome |
FixedSizeTestSuiteChromosomeFactory.getChromosome()
getChromosome
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DeprecatedTestSuiteDSE.applyDSE0(TestSuiteChromosome individual)
Deprecated.
Attempt to negate individual branches until budget is used up, or there
are no further branches to negate
|
static TestSuiteLocalSearchObjective |
TestSuiteLocalSearchObjective.buildNewTestSuiteLocalSearchObjective(List<FitnessFunction<? extends Chromosome>> fitness,
TestSuiteChromosome suite,
int index)
Creates a new
TestSuiteLocalSearchObjective for a given list
of fitness functions, a test suite and a testIndex for
replacing an optimised test case (i.e. |
boolean |
TestSuiteLocalSearch.doSearch(TestSuiteChromosome suite,
LocalSearchObjective<TestSuiteChromosome> objective)
Applies local search to the suite targeting the objective passed as
parameter.
|
protected static void |
TestSuiteLocalSearch.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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TestSuiteLocalSearch.doSearch(TestSuiteChromosome suite,
LocalSearchObjective<TestSuiteChromosome> objective)
Applies local search to the suite targeting the objective passed as
parameter.
|
protected static void |
TestSuiteLocalSearch.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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MinimizeTotalLengthSecondaryObjective.compareChromosomes(TestSuiteChromosome chromosome1,
TestSuiteChromosome chromosome2)
Compare two chromosomes with each other with respect to this objective.
|
int |
MinimizeMaxLengthSecondaryObjective.compareChromosomes(TestSuiteChromosome chromosome1,
TestSuiteChromosome chromosome2)
Compare two chromosomes with each other with respect to this objective.
|
int |
MinimizeExceptionsSecondaryObjective.compareChromosomes(TestSuiteChromosome chromosome1,
TestSuiteChromosome chromosome2)
Compare two chromosomes with each other with respect to this objective.
|
int |
MinimizeAverageLengthSecondaryObjective.compareChromosomes(TestSuiteChromosome chromosome1,
TestSuiteChromosome chromosome2)
Compare two chromosomes with each other with respect to this objective.
|
int |
MinimizeTotalLengthSecondaryObjective.compareGenerations(TestSuiteChromosome parent1,
TestSuiteChromosome parent2,
TestSuiteChromosome child1,
TestSuiteChromosome child2)
Compare two parents to decide whether the children can replace the
parents.
|
int |
MinimizeMaxLengthSecondaryObjective.compareGenerations(TestSuiteChromosome parent1,
TestSuiteChromosome parent2,
TestSuiteChromosome child1,
TestSuiteChromosome child2)
Compare two parents to decide whether the children can replace the
parents.
|
int |
MinimizeExceptionsSecondaryObjective.compareGenerations(TestSuiteChromosome parent1,
TestSuiteChromosome parent2,
TestSuiteChromosome child1,
TestSuiteChromosome child2)
Compare two parents to decide whether the children can replace the
parents.
|
int |
MinimizeAverageLengthSecondaryObjective.compareGenerations(TestSuiteChromosome parent1,
TestSuiteChromosome parent2,
TestSuiteChromosome child1,
TestSuiteChromosome child2)
Compare two parents to decide whether the children can replace the
parents.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
DiversityObserver.getSuiteSimilarity(TestSuiteChromosome suite1,
TestSuiteChromosome suite2)
Naive similarity comparison between suites simply consists of merging all tests to a single test
for each suite, and then comparing these tests
|
Copyright © 2010–2017 EvoSuite. All rights reserved.