Sie sind auf Seite 1von 2

Installation

1. Download Nant from http://nant.sourceforge.net/ 2. Configure Nant by setting the Environment Variable path=C:\Program Files\nant-0.91-alpha1\bin; 3. Download last release from http://sourceforge.net/projects/nunit2report/. Copy from the bin download directory the files :

NUnit-Frame.xsl NUnit-NoFrame.xsl toolkit.xsl i18n.xsl Traductions.xml NAnt.NUnit2ReportTasks.dll

to the Nant bin directory.

Usage
1. Open Command promt and change directory to NUnit2Report directory 2. Create a build xml file like as follows

<?xml version=1.0 encoding=ISO-8859-1 ?> <project name=Frontiers Automation System default=nunitreport basedir=.> <! Init Nant properties > <tstamp property=build.date pattern=dd-MM-yyyy verbose=true/> <sysinfo/> <target name=nunitreport> <! Example 1 > <! By default the report is in english and format is noframes, out file is index.htm opendesc=yes> <nunit2report out=HTML_TestResults.html> <fileset> <includes name=NUnitTestResult.xml /> </fileset>

</nunit2report> <echo message=HTML Test report generated. /> </target> </project>


3. type nant in CommandPrompt 4. Check the Converted HTML test report HTML_TestResults.html generated in the Nunit2Report folder.

Limitation
1. No support for mutiple Nunit results file xml in input (only one file in the fileset is supported). 2. No support for mutiple C# XML Comment file in input (only one file in the summaries is supported). 3. NAnt on Windows Server 2008 64-bit with .NET 3.5 doesn't work

Das könnte Ihnen auch gefallen