[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Fikret Abdic commented on JENKINS-27906 Re: Fail to read NUnit3 output xml You have to change 2 things to get this working! (Some people forget the second one) Add this to your build command: /xml:nunit-result_%BUILD_NUMBER%_%SVN_REVISION%.xml;format=nunit2 And this to the section Post Build under Publish Reports nunit-result_%BUILD_NUMBER%_%SVN_REVISION%.xml Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Wilson Li updated an issue Jenkins / JENKINS-27906 Fail to read NUnit3 output xml Change By: Wilson Li Priority: Minor Major Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Wilson Li updated an issue Jenkins / JENKINS-27906 Fail to read NUnit3 output xml Change By: Wilson Li Attachment: TestResult.xml Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Wilson Li commented on JENKINS-27906 Re: Fail to read NUnit3 output xml Hi There I am currently having the same issue. I am trying to intergrate Nunit from Windows, appears that the Nuget managers' NUnit version is 3 something. I have tried running in the build step I use MSBuild to build the project. I then use a CMD Build with this command "C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "C:\VisualStudios2015Repo\Mace E-Commerce Development\MACE_eCommerce_MAIN\Mace_E-Commerce_Project\WebUnitTest\bin\Debug\WebUnitTest.dll" /work:"C:\TestWeb" "--result:TestResult.xml;format=nunit2" cd C:\TestWeb\ cd I then have a post Build process to publish the result The result is named TestResult.xml and is found in the C:\TestWeb I am getting the same error the fixes above have not resolved the issue. Please could anyone give any pointers The XML produced from the CMD command is attatched to this ticket Named "TestResult.xml" Here is the output by Jenkins: Run Settings WorkDirectory: C:\TestWeb ImageRuntimeVersion: 4.0.30319 ImageTargetFrameworkName: .NETFramework,Version=v4.5 ImageRequiresX86: False ImageRequiresDefaultAppDomainAssemblyResolver: False NumberOfTestWorkers: 4 Test Run Summary Overall result: Failed Test Count: 1, Passed: 0, Failed: 1, Inconclusive: 0, Skipped: 0 Failed Tests - Failures: 1, Errors: 0, Invalid: 0 Start time: 2016-04-07 10:38:59Z End time: 2016-04-07 10:38:59Z Duration: 0.150 seconds Results (nunit2) saved as TestResult.xml C:\Users\wilson.li\.jenkins\jobs\SlaveJobRunner\workspace>cd C:\TestWeb\ C:\TestWeb>cd C:\TestWeb C:\TestWeb>exit 0 Recording NUnit tests results ERROR: Step ‘Publish NUnit test result report’ aborted due to exception: hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:68) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:145) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/wilson.li/.jenkins/jobs/SlaveJobRunner/workspace/temporary-junit-reports/temp-junit.xml; lineNumber: 2; columnNumber: 3; Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Paul Hicks commented on JENKINS-27906 Re: Fail to read NUnit3 output xml This is an NUnit3 results file that this plugin does not yet support. There is an XSLT file attached to issue JENKINS-32999 that can be used to transform this file to a JUnit results file. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Jonas Gunnarsson commented on JENKINS-27906 Re: Fail to read NUnit3 output xml Hi! I'm having the same problem with NUnit 3 beta5. Adding the ;format=nunit2 to the --report parameter, seems to work. Attachments: [^jenkins-nunit3-error.txt] Relates to: https://github.com/nunit/nunit/issues/853 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Jonas Gunnarsson updated an issue Jenkins / JENKINS-27906 Fail to read NUnit3 output xml Change By: Jonas Gunnarsson Attachment: jenkins-nunit3-error.txt Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Brian Reeves commented on JENKINS-27906 Re: Fail to read NUnit3 output xml We finally got this to work by putting in quotes. "--result:TestResult.xml;format=nunit2" Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Brian Reeves commented on JENKINS-27906 Re: Fail to read NUnit3 output xml The workaround isn't working for us. We're receiving the following error. Is there another workaround? --result:TestResultt_%BUILD_NUMBER%.xml;format=nunit2 Error message: System.ArgumentException: Invalid XML output format 'nunit2' 11:50:07 Parameter name: format 11:50:07 at NUnit.Engine.Services.ResultService.GetResultWriter(String format, Object[] args) 11:50:07 at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter) 11:50:07 at NUnit.ConsoleRunner.ConsoleRunner.Execute() 11:50:07 at NUnit.ConsoleRunner.Program.Main(String[] args) Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title apgray commented on JENKINS-27906 Re: Fail to read NUnit3 output xml Thanks for the workaround Flaviu S. That works for now. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title SCM/JIRA link daemon commented on JENKINS-27906 Re: Fail to read NUnit3 output xml Code changed in jenkins User: Bruno P. Kinoshita Path: src/test/java/hudson/plugins/nunit/NUnitReportTransformerTest.java src/test/resources/hudson/plugins/nunit/issue-27906.xml http://jenkins-ci.org/commit/nunit-plugin/0ca5a2ba4231405b3061925002317914f4c6856d Log: JENKINS-27906 Added test case Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Flaviu S updated an issue Jenkins / JENKINS-27906 Fail to read NUnit3 output xml Change By: Flaviu S Attachment: nunit3_TestResult.xml Attachment: nunit2_TestResult.xml Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Flaviu S commented on JENKINS-27906 Re: Fail to read NUnit3 output xml Found some info about it on the nunit github page: https://github.com/nunit/nunit/wiki/XML-Formats Also there is a workaround, you can tell nunit3 console test runner to save the test results using the nunit2 xml schema by adding the following option --result:TestResult.xml;format=nunit2 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Flaviu S edited a comment on JENKINS-27906 Re: Fail to read NUnit3 output xml Foundsomeinfoaboutitonthenunitgithubpage:https://github.com/nunit/nunit/wiki/XML-FormatsAlsothereisaworkaround,youcantellnunit3consoletestrunnertosavethetestresultsusingthenunit2xmlschemabyaddingthefollowingoption : --result:TestResult.xml;format=nunit2 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Title: Message Title Flaviu S commented on JENKINS-27906 Re: Fail to read NUnit3 output xml I also stumbled across the same issue, seems like the test results xml structure has changed a lot in nunit3. I will try to provide a sample from both versions if that helps. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Bruno P. Kinoshita commented on JENKINS-27906 Fail to read NUnit3 output xml Thank you. The problem seems to be related with the root element. Instead of test-results, your XML's root element is test-run. I couldn't find anywhere in NUnit site documenting about this backward compatibility change. Are you aware of such change? This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
Bruno P. Kinoshita commented on JENKINS-27906 Fail to read NUnit3 output xml Can you attach the temp-junit.xml XML file as well, please? What it looks like, is that something changed in the way NUnit produces XML's, and the plug-in needs some adjustments in order to correctly parse it. Thanks. Bruno This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
apgray updated JENKINS-27906 Fail to read NUnit3 output xml Change By: apgray (12/Apr/15 8:31 AM) Attachment: nunit-selenium-testsuite.xml This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [nunit-plugin] (JENKINS-27906) Fail to read NUnit3 output xml
apgray created JENKINS-27906 Fail to read NUnit3 output xml Issue Type: Bug Assignee: Bruno P. Kinoshita Components: nunit-plugin Created: 12/Apr/15 4:32 AM Description: When I run NUnit tests using the NUnit 3 Beta 1 the tests execute but the build fails when the NUnit plugin tries to publish the results. Exception I get in Jenkins console is: Test Run Summary Overall result: Passed Tests run: 9, Passed: 9, Errors: 0, Failures: 0, Inconclusive: 0 Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 Start time: 2015-04-12 04:15:47Z End time: 2015-04-12 04:24:43Z Duration: 535.974 seconds Results (nunit3) saved as nunit-selenium-testsuite.xml Recording NUnit tests results ERROR: Publisher hudson.plugins.nunit.NUnitPublisher aborted due to exception hudson.util.IOException2: Could not transform the NUnit report. Please report this issue to the plugin author at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:60) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:116) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Jenkins/workspace/Saucery3NUnit/temporary-junit-reports/temp-junit.xml; lineNumber: 12; columnNumber: 9; Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205) at hudson.plugins.nunit.NUnitReportTransformer.splitJUnitFile(NUnitReportTransformer.java:102) at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:72) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:55) Environment: Windows Project: Jenkins Labels: plugin nunit Priority: Minor Reporter: apgray This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.