use of org.evosuite.Properties.Criterion in project evosuite by EvoSuite.
the class CoverageCriteriaAnalyzer method analyzeCoverage.
private static void analyzeCoverage(TestSuiteChromosome testSuite, String criterion) {
try {
Properties.Criterion crit = Properties.Criterion.valueOf(criterion.toUpperCase());
analyzeCoverage(testSuite, crit);
} catch (IllegalArgumentException e) {
LoggingUtils.getEvoLogger().info("* Unknown coverage criterion: " + criterion);
}
}
use of org.evosuite.Properties.Criterion in project evosuite by EvoSuite.
the class CoverageCriteriaAnalyzer method analyzeCoverage.
public static void analyzeCoverage(TestSuiteChromosome testSuite) {
LoggingUtils.getEvoLogger().info("* Going to analyze the coverage criteria");
Properties.Criterion[] criteria = Properties.CRITERION;
/*
As we analyze exactly the same criteria used during the search, we should do not
need to re-instrument and re-run the tests
*/
boolean recalculate = false;
for (Properties.Criterion pc : criteria) {
LoggingUtils.getEvoLogger().info("* Coverage analysis for criterion " + pc);
analyzeCoverage(testSuite, pc, recalculate);
}
}
Aggregations