From: Fangio R. <fan...@eg...> - 2006-10-26 08:54:25
|
Hello, I have a problem with NUnit and CruiseControl. I use NAnt to run my NUnit-test. It generates a XML-file and I try to merge the file, so I can view the results in the WebDashBoard. The problem is that I don't see the results when I click the 'NUnit Details' link. When I look in the CCNET.log, I see that the file has been merged. I have run through all the steps described in the documentation, but still I cannot see the test results. I use NUnit 2.2.8.0 and Cruisecontrol.NET 1.0.1.1277. Attached is the XML-file that contains the Results for my UnitTests. The Code in my CCNET.config: --------------------------------------------------------------------------------------------------------------------------------------- <project name="Project"> <webURL>URL</webURL> <externalLinks> <externalLink name="Click here to have access to the latest Project Builds!!" url="http://cruisecontrol/Builds/Project/trunk/" /> </externalLinks> <labeller type="defaultlabeller"> <prefix>Project_1_0_</prefix> <incrementOnFailure>false</incrementOnFailure> </labeller> <state type="state" directory="C:\CruiseControl\State" /> <workingDirectory>C:\Projects\Project\trunk</workingDirectory> <artifactDirectory>C:\CruiseControl\Artifacts\Project\trunk</artifactDirectory> <modificationDelaySeconds>60</modificationDelaySeconds> <triggers> <intervalTrigger seconds="1800" /> </triggers> <sourcecontrol type="svn"> <trunkUrl>trunkURL</trunkUrl> <executable>C:\Program Files\Subversion\bin\svn.exe</executable> <workingDirectory>C:\Projects\Project\trunk</workingDirectory> <username>username</username> <password>password</password> <autoGetSource>true</autoGetSource> <tagOnSuccess>true</tagOnSuccess> <tagBaseUrl>cruisecontroltags</tagBaseUrl> </sourcecontrol> <tasks> <nant> <executable>tools\nant\NAnt.exe</executable> <nologo>false</nologo> <buildFile>project.build</buildFile> <targetList> <target>all</target> </targetList> <buildTimeoutSeconds>5200</buildTimeoutSeconds> </nant> </tasks> <publishers> <merge> <files> <file>C:\Projects\Project\trunk\UnitTest\UnitTest*.xml</file> </files> </merge> <xmllogger /> <buildpublisher> <sourceDir>C:\Projects\Project\trunk\build</sourceDir> <publishDir>publishdir</publishDir> </buildpublisher> <email > <users> </users> <groups> </groups> </email> </publishers> </project> --------------------------------------------------------------------------------------------------------------------------------------- The Code in the NAnt-script: --------------------------------------------------------------------------------------------------------------------------------------- <target name="Utils"> <solution solutionfile="src\Robot\Utils\NameSpaceUtils\NameSpaceUtils.sln" configuration="${project.build.config}" outputdir="${project.build.dir}/Utils"> </solution> <!-- Running the UnitTests --> <exec program="nunit-console.exe" basedir="${NUnitDir}" failonerror="true" > <!-- The dll or exe that contains the UnitTests --> <arg value="${project.build.dir}/Utils/NameSpaceUtilsUnitTests.dll" /> <!-- Output file of the test --> <arg value="/xml=UnitTest/UnitTest-NameSpaceUtils.xml" /> </exec> </target> --------------------------------------------------------------------------------------------------------------------------------------- I hope you can help me. Kind Regards, Fangio Roegies *********************DISCLAIMER******************** The information in this e'mail is strictly confidential and intended for the exclusive use of the addressee(s). Egemin disclaims all responsibility and accepts no liability for the consequences of any person acting or refraining from acting on the information contained in this e'mail prior to the receipt of a confirmation letter or fax signed by an authorised person. *****************END OF DISCLAIMER***************** << >> |