org.tap4j.ext.testng
Class SuiteTapReporter

Package class diagram package SuiteTapReporter
java.lang.Object
  extended by org.tap4j.ext.testng.SuiteTapReporter
All Implemented Interfaces:
org.testng.IReporter, org.testng.ITestNGListener

public class SuiteTapReporter
extends Object
implements org.testng.IReporter

A TestNG suite TAP reporter.

Since:
1.0

Constructor Summary
SuiteTapReporter()
           
 
Method Summary
protected  String[] findInWhatGroupsMethodIs(org.testng.ITestNGMethod methodToFind, Map<String,Collection<org.testng.ITestNGMethod>> groups)
          Get all groups names that a Test Method is inclueded in
 void generateClasses(org.testng.xml.XmlSuite xmlSuite, org.testng.ISuite suite)
          Populate a List of ITestResults for every test Class in a test Suite
 void generateReport(List<org.testng.xml.XmlSuite> xmlSuites, List<org.testng.ISuite> suites, String outputDirectory)
           
protected  void generateResultsMapForGroups(org.testng.xml.XmlSuite xmlSuite, org.testng.ISuite suite, Map<String,Collection<org.testng.ITestNGMethod>> groups)
          Generate the results map for the groups
protected  void generateTAPPerGroup(List<org.testng.xml.XmlSuite> xmlSuites, List<org.testng.ISuite> suites, String outputDirectory)
          Generate a TAP file for every group tested
protected  void generateTAPPerSuite(List<org.testng.xml.XmlSuite> xmlSuites, List<org.testng.ISuite> suites, String outputDirectory)
          Generate a TAP file for every suite tested
protected  Set<Class<?>> getTestResultsSetPerSuite(org.testng.ISuite suite)
          Get a Set of test Results for Suites by a given ISuite
 Integer getTotalTestResultsByTestSuite(Set<Class<?>> keySet)
          Get total results from a test suite
protected  void populateTestResultsPerGroupMap(org.testng.ISuite suite, Map<String,Collection<org.testng.ITestNGMethod>> groups)
          Populate a Map of test Results for Groups by a given ISuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteTapReporter

public SuiteTapReporter()
Method Detail

generateReport

public void generateReport(List<org.testng.xml.XmlSuite> xmlSuites,
                           List<org.testng.ISuite> suites,
                           String outputDirectory)
Specified by:
generateReport in interface org.testng.IReporter

generateTAPPerSuite

protected void generateTAPPerSuite(List<org.testng.xml.XmlSuite> xmlSuites,
                                   List<org.testng.ISuite> suites,
                                   String outputDirectory)
Generate a TAP file for every suite tested

Parameters:
xmlSuites -
suites -
outputDirectory -

generateTAPPerGroup

protected void generateTAPPerGroup(List<org.testng.xml.XmlSuite> xmlSuites,
                                   List<org.testng.ISuite> suites,
                                   String outputDirectory)
Generate a TAP file for every group tested

Parameters:
xmlSuites -
suites -
outputDirectory -

getTestResultsSetPerSuite

protected Set<Class<?>> getTestResultsSetPerSuite(org.testng.ISuite suite)
Get a Set of test Results for Suites by a given ISuite

Parameters:
suite -
Returns:
Set of Classes for a Suite

populateTestResultsPerGroupMap

protected void populateTestResultsPerGroupMap(org.testng.ISuite suite,
                                              Map<String,Collection<org.testng.ITestNGMethod>> groups)
Populate a Map of test Results for Groups by a given ISuite

Parameters:
suite -
groups -

getTotalTestResultsByTestSuite

public Integer getTotalTestResultsByTestSuite(Set<Class<?>> keySet)
Get total results from a test suite

Parameters:
keySet -
Returns:
Total Results

generateClasses

public void generateClasses(org.testng.xml.XmlSuite xmlSuite,
                            org.testng.ISuite suite)
Populate a List of ITestResults for every test Class in a test Suite

Parameters:
xmlSuite -
suite -

generateResultsMapForGroups

protected void generateResultsMapForGroups(org.testng.xml.XmlSuite xmlSuite,
                                           org.testng.ISuite suite,
                                           Map<String,Collection<org.testng.ITestNGMethod>> groups)
Generate the results map for the groups

Parameters:
xmlSuite -
suite -
groups -

findInWhatGroupsMethodIs

protected String[] findInWhatGroupsMethodIs(org.testng.ITestNGMethod methodToFind,
                                            Map<String,Collection<org.testng.ITestNGMethod>> groups)
Get all groups names that a Test Method is inclueded in

Parameters:
methodToFind -
groups -


Copyright © 2010-2012 TupiLabs. All Rights Reserved.