BundleContext bContext,
PathFilter testPathFilter) {
//generate all the converter paths
ConverterGraph converterGraph = new ConverterGraph(converterRefs,
bContext, this.log);
//run the tests
TestResult[] rawResults =
runAllTests(converterGraph, testPathFilter, cContext, bContext);
AllTestsResult allTestsResult = new AllTestsResult(rawResults);
//analyze the test results to extract more useful info
Converter[] allConverters = converterGraph.getAllConverters();
ChanceAtFaultHeuristic faultHeuristic =
new ErrorProximityHeuristic();
AllConvsResult allConvertersResult =
ConvResultMaker.generate(allTestsResult, allConverters,
faultHeuristic);
//feed test results to the report generators
for (int ii = 0; ii < reportGenerators.length; ii++) {
ReportGenerator reportGenerator = reportGenerators[ii];
reportGenerator.generateReport(allTestsResult,
allConvertersResult, converterGraph.asNWB());
}
}