in maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java [304:348]
private void renderSectionTestCases() {
if (testSuites.isEmpty()) {
return;
}
startSection(getI18nString("surefire", "label.testcases"), "Test_Cases");
constructHotLinks();
for (ReportTestSuite suite : testSuites) {
List<ReportTestCase> testCases = suite.getTestCases();
if (!testCases.isEmpty()) {
startSection(suite.getName(), suite.getFullClassName());
boolean showTable = false;
for (ReportTestCase testCase : testCases) {
if (!testCase.isSuccessful() || showSuccess) {
showTable = true;
break;
}
}
if (showTable) {
startTable();
for (ReportTestCase testCase : testCases) {
if (!testCase.isSuccessful() || showSuccess) {
constructTestCaseSection(testCase);
}
}
endTable();
}
endSection();
}
}
sink.lineBreak();
endSection();
}