in maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java [318:370]
private void renderSectionTestCases() {
if (testSuites.isEmpty()) {
return;
}
sink.section1();
sinkAnchor("Test_Cases");
sink.sectionTitle1();
sink.text(getI18nString("surefire", "label.testcases"));
sink.sectionTitle1_();
constructHotLinks();
for (ReportTestSuite suite : testSuites) {
List<ReportTestCase> testCases = suite.getTestCases();
if (!testCases.isEmpty()) {
sink.section2();
sinkAnchor(suite.getPackageName() + '.' + suite.getName());
sink.sectionTitle2();
sink.text(suite.getName());
sink.sectionTitle2_();
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();
}
sink.section2_();
}
}
sink.lineBreak();
sink.section1_();
}