Hi, Running the task below (NUnit tests), i get a NAnt internal error (NAnt.Core.BuildException) Any help to resolve this one ??
Best regards Allan Dystrup <!-- ======================== Target NUnit2 ========================== --> <target name = "NUnit2" description = "Run NUnit tests and generate XML plus HTML report" > <property name = "NUnit.dir" value = "${build.dir}\NUnit" /> <!-- 1: Run ...\KMD.NI.SdpiEws.UnitTests.dll and generate XML report --> <echo message="... generating report to local build dir" level="Info" /> <nunit2 verbose="true" failonerror="false"> <formatter type="Xml" usefile="true" extension=".xml" outputdir="${build.dir}\NUnit\doc\" /> <test> <assemblies basedir="C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.UnitTests\bin\Debug\"> <include name="KMD.NI.SdpiEws.UnitTests.dll" /> </assemblies> </test> </nunit2> <!-- 2: Transform XML report to KMD.NI.SdpiEws.HTML --> <echo message="... transforming report to html" level="Info" /> <nunit2report out=".\doc\KMD.NI.SdpiEws2.html" failonerror="false"> <fileset> <include name="${NUnit.dir}\doc\KMD.NI.SdpiEws.UnitTests.dll-results.xml" /> </fileset> </nunit2report> <!-- 3: Copy HTML report to SDPI project share --> <echo message="... copying report to project share" level="Info" /> <mkdir dir = "${share.dir}\NUnit" unless = "${directory::exists('${share.dir}\NUnit')}" /> <copy file = "${NUnit.dir}\doc\KMD.NI.SdpiEws2.html" todir = "${share.dir}\NUnit" overwrite="true" /> </target> ===================================================================================================== NUnit2: [echo] ... generating report to local build dir [nunit2] C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.BuildUtilities\NAnt\KMD.NI.SdpiEws.All.build(313,6): [nunit2] Tests Failed.: [nunit2] NAnt.Core.BuildException: C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.BuildUtilities\NAnt\KMD.NI.SdpiEw s.All.build(313,6): [nunit2] Tests Failed. [nunit2] at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask() [nunit2] at NAnt.Core.Task.Execute() [echo] ... transforming report to html BUILD FAILED - 1 non-fatal error(s), 1 warning(s) INTERNAL ERROR System.Xml.XmlException: The '1' character, hexadecimal value 0x31, cannot begin with a name. at System.Xml.XmlConvert.VerifyNCName(String name) at System.Xml.XmlQualifiedName.Verify() at System.Xml.Xsl.XsltArgumentList.AddParam(String name, String namespaceUri, Object parameter) at NAnt.NUnit2ReportTasks.NUnit2ReportTask.GetPropertyList() at NAnt.NUnit2ReportTasks.NUnit2ReportTask.InitializeTask(XmlNode taskNode) at NAnt.Core.Task.InitializeElement(XmlNode elementNode) at NAnt.Core.Element.Initialize(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework) at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target) at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] _______________________________________________________________________________________ www.kmd.dk www.kundenet.kmd.dk www.eboks.dk www.civitas.dk www.netborger.dk www.organisator.dk Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer mig og sletter den. KMD skaber it-services, der fremmer effektivitet hos det offentlige, erhvervslivet og borgerne. If you received this e-mail by mistake, please notify me and delete it. Thank you. Our mission is to enhance the efficiency of the public sector and improve its service of the general public. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers