Dear All I am just setting up a job to parse cpp unit test results in jenkins. I have used the xml presented in this email and configured xunit (cppunittest-1.12.1) plugin version 1.54. Still I am getting the same error. Is there any additional configuration required to be done?
Thanks Sivaraman K On Friday, December 23, 2011 4:44:57 PM UTC+5:30, Jorge Costa wrote: > > Yep just did and confirm the fix. > > Thanks > JC > > > 2011/12/23 Grégory Boissinot <gregory....@gmail.com <javascript:>> > >> Could you upgrade to xUnit 1.33? >> The latest xUnit Jenkins plugin fixes the problem. >> Thanks >> Gregory >> >> >> On Thu, Dec 22, 2011 at 7:15 PM, Jorge Costa <jmec...@gmail.com<javascript:> >> > wrote: >> >>> Hi everyone, >>> >>> i wrote a few units test with cppunit framework the results are >>> generated in xml using the XmlOutputter. The results file is generated >>> however for some reason the xunit plugin fail to process the file. >>> >>> I've tried also by running the xsltproc (http://schneide.wordpress.com/ >>> 2008/09/29/using-hudson-for-ccmakecppunit/<http://schneide.wordpress.com/2008/09/29/using-hudson-for-ccmakecppunit/>) >>> >>> conversion in the results >>> file but did not work. I was using xunit in November and it was >>> working. >>> >>> Can someone take give some indication what is the problem here? >>> >>> I'm getting the following output from the xunit plugin: >>> >>> #### >>> 100% tests passed, 0 tests failed out of 2 >>> >>> Total Test time (real) = 0.04 sec >>> [xUnit] [INFO] - Starting to record. >>> [xUnit] [INFO] - Processing CppUnit-1.12.1 (default) >>> [xUnit] [INFO] - [CppUnit-1.12.1 (default)] - 1 test report file(s) >>> were found with the pattern 'testResults.xml' relative to '/var/lib/ >>> jenkins/jobs/NavLaser3_Testing/workspace' for the testing framework >>> 'CppUnit-1.12.1 (default)'. >>> [xUnit] [ERROR] - The result file '/var/lib/jenkins/jobs/ >>> NavLaser3_Testing/workspace/testResults.xml' for the metric 'CppUnit' >>> is not valid. The result file has been skipped. >>> [xUnit] [INFO] - Setting the build status to FAILURE >>> [xUnit] [INFO] - Stopping recording. >>> Build step 'Publish testing tools result report' changed build result >>> to FAILURE >>> Finished: FAILURE >>> #### >>> >>> #### XML results file - original >>> <?xml version="1.0" encoding='ISO-8859-1' standalone='yes' ?> >>> <TestRun> >>> <SuiteInfo> >>> <Author>J. Costa</Author> >>> <Project>NavLaser3 - config_extractor</Project> >>> <Date>1324236885</Date> >>> </SuiteInfo> >>> <FailedTests></FailedTests> >>> <SuccessfulTests> >>> <Test id="1"> >>> <Name>config_extractorTest::test_config_extractor_Constructors</ >>> Name> >>> </Test> >>> <Test id="2"> >>> <Name>config_extractorTest::test_setLineEstimationMethod</Name> >>> </Test> >>> <Test id="3"> >>> <Name>config_extractorTest::test_setCircleEstimationMethod</ >>> Name> >>> </Test> >>> <Test id="4"> >>> <Name>config_extractorTest::test_setBreakPointMethod</Name> >>> </Test> >>> <Test id="5"> >>> <Name>config_extractorTest::test_setCornerEstimationMethod</ >>> Name> >>> </Test> >>> <Test id="6"> >>> <Name>config_extractorTest::test_setMinDistanceBtwLines</Name> >>> </Test> >>> <Test id="7"> >>> <Name>config_extractorTest::test_setMinLinePoints</Name> >>> </Test> >>> </SuccessfulTests> >>> <Statistics> >>> <Tests>7</Tests> >>> <FailuresTotal>0</FailuresTotal> >>> <Errors>0</Errors> >>> <Failures>0</Failures> >>> </Statistics> >>> </TestRun> >>> ##### >>> >>> #### XML results file - transformed >>> <?xml version="1.0"?> >>> <testsuite errors="0" failures="0" tests="7" name="from cppunit"> >>> <testcase classname="config_extractorTest" >>> name="test_config_extractor_Constructors"/> >>> <testcase classname="config_extractorTest" >>> name="test_setLineEstimationMethod"/> >>> <testcase classname="config_extractorTest" >>> name="test_setCircleEstimationMethod"/> >>> <testcase classname="config_extractorTest" >>> name="test_setBreakPointMethod"/> >>> <testcase classname="config_extractorTest" >>> name="test_setCornerEstimationMethod"/> >>> <testcase classname="config_extractorTest" >>> name="test_setMinDistanceBtwLines"/> >>> <testcase classname="config_extractorTest" >>> name="test_setMinLinePoints"/> >>> </testsuite> >>> ##### >>> >>> Thanks for the help >>> >>> Jorge Costa >> >> >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.