Summary
A task that generates a summary HTML
from a set of NUnit xml report files.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks .NUnit2Report - Base Types
-
- Task
graph BT
Type-->Base0["Task"]
Type["NUnit2ReportTask"]
class Type type-node
Syntax
[TaskName("nunit2report")]
public class NUnit2ReportTask : Task
Examples
<nunit2report todir="${outputdir}">
<fileset>
<includes name="${outputdir}\results.xml" />
</fileset>
</nunit2report>
Remarks
This task can generate a combined HTML report out of a set of NUnit result files generated using the XML Result Formatter.
All the properties defined in the current project will be passed down to the XSLT file as template parameters, so you can access properties such as nant.project.name, nant.version, etc.
Attributes
Type | Description |
---|---|
TaskName |
Properties
Name | Value | Summary |
---|---|---|
Format | ReportFormat |
The format of the generated report. The default is
NAnt.Contrib.Types.NUnit2Report.ReportFormat.NoFrames .
|
Language | string |
The output language.
|
OpenDescription | string |
Open all description method. Default to "false".
|
ToDir | DirectoryInfo |
The directory where the files resulting from the transformation
should be written to. The default is the project's base directory.
|
XmlFileSet | FileSet |
Set of XML files to use as input
|
XmlSummaries | FileSet |
Set of summary XML files to use as input.
|
XslFile | FileInfo |
XSLT file used to generate the report if
NAnt.Contrib.Tasks.NUnit2Report.NUnit2ReportTask.Format is
NAnt.Contrib.Types.NUnit2Report.ReportFormat.NoFrames .
|
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void |
This is where the work is done
|
Initialize |
void |
Initializes task and ensures the supplied attributes are valid.
|
LoadStyleSheet |
XPathDocument |
Load a stylesheet from the file system.
|
LoadStyleSheet |
XPathDocument |
Load a stylesheet from the assemblies resource stream.
|