Skip to content

Commit

Permalink
Added: Suite files that only contain other suites do not get reported
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeust committed Mar 23, 2007
1 parent 05744a9 commit c8d9bd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
@@ -1,6 +1,7 @@
===========================================================================
5.6

Added: Suite files that only contain other suites do not get reported
Fixed: @BeforeClass methods would incorrectly report cyclic graphs
Added: get/setAttribute to ITestContext
Added: plugging in factory objects to handle the actual instantiation of tests
Expand Down
3 changes: 3 additions & 0 deletions src/main/org/testng/reporters/SuiteHTMLReporter.java
Expand Up @@ -57,6 +57,7 @@ public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String
// Generate the various reports
//
XmlSuite xmlSuite = xmlSuites.get(i);
if (xmlSuite.getTests().size() == 0) continue;
ISuite suite = suites.get(i);
generateTableOfContents(xmlSuite, suite);
generateSuites(xmlSuite, suite);
Expand Down Expand Up @@ -109,6 +110,8 @@ private void generateIndex(List<ISuite> suites) {

StringBuffer suiteBuf= new StringBuffer();
for (ISuite suite : suites) {
if (suite.getResults().size() == 0) continue;

String name = suite.getName();

int failedTests= 0;
Expand Down

0 comments on commit c8d9bd6

Please sign in to comment.