Re: transform xml in Nant task

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <000601c823bd$40c284a0$6401a8c0@FERRARI>
The intended use of NUnit-console's transform option is to allow you to
change the format of the console display. It always displays the result on
the console. If you want to create a transform in a file, you should use a
separate task to take the output file from NUnit-console and apply the xslt
ransformation.
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Christopher
L Judd
Sent: Wednesday, November 07, 2007 5:57 AM
To: [email protected]
Subject: [Nunit-users] transform xml in Nant task


NUnit Users,

I am trying to get Nunit to do an xml transform in an Nant task and
ultimately mail the result out to me.  I've got the below tasks working fine
and it is mailing me xml, I just don't know how I can the results of the
transform to a file. 

Thanks for your help,
Chris

<target name="test" depends="compile, run-unit-tests, mail" 

    description="Compile, Run Tests and Email the results" />

<target name="run-unit-tests"> 

    <exec program="nunit-console.exe" basedir="tools\nunit"
workingdir="build\Debug\SystemMonitoring">

        <arg value="SystemMonitoring.dll" />
        <arg value="/xml: UnitTests.xml" />
        <arg value="/transform:Summary.xslt" />
    </exec>

</target>
<target name="mail">
        <mail 
    from="  <mailto:[email protected]> [email protected]" 
    tolist="[email protected]"     
    mailhost="someserver.com">
    <files> 
        <include name="build\Debug\SystemMonitoring\UnitTests.xml" />
    </files>   
    <attachments>
        <include name="build\Debug\SystemMonitoring\UnitTests.xml" /> 
    </attachments>
</mail>
</target>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.