org.exolab.jmscts.report
Class CoverageReport
java.lang.Object
|
+--org.exolab.jmscts.report.CoverageReport
- public class CoverageReport
- extends java.lang.Object
This class generates a requirements coverage report in HTML from a
TestCoverage
instance
- Version:
- $Revision: 1.6 $ $Date: 2004/02/03 21:52:08 $
- Author:
- Tim Anderson
- See Also:
TestCoverage
Constructor Summary |
CoverageReport(java.lang.String path)
Construct an instance to generate a report from an existing coverage.xml
file |
CoverageReport(java.lang.String path,
TestCoverage coverage,
ProviderLoader provider)
Construct an instance with the test suite's coverage of requirements |
Method Summary |
static void |
main(java.lang.String[] args)
Main line |
void |
report(java.lang.String dir)
Generate the coverage report |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoverageReport
public CoverageReport(java.lang.String path)
- Construct an instance to generate a report from an existing coverage.xml
file
- Parameters:
path
- the path to locate stylesheets
CoverageReport
public CoverageReport(java.lang.String path,
TestCoverage coverage,
ProviderLoader provider)
- Construct an instance with the test suite's coverage of requirements
- Parameters:
path
- the path to locate stylesheetscoverage
- the test suite's coverage of requirementsprovider
- the provider loader
report
public void report(java.lang.String dir)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
javax.xml.transform.TransformerException,
org.exolab.castor.xml.ValidationException
- Generate the coverage report
- Parameters:
dir
- the directory path to write the report to- Throws:
java.io.IOException
- if the specified file is not found or if some other
I/O error occursorg.exolab.castor.xml.MarshalException
- if the coverage report cannot be writtenorg.exolab.castor.xml.ValidationException
- if the coverage report doesn't comply
with the XML Schema definitionjavax.xml.transform.TransformerException
- if the transformation fails
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main line
- Parameters:
args
- the command line arguments- Throws:
java.lang.Exception
- for any error
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.