Closed GoogleCodeExporter closed 8 years ago
PHPUnitTestResults Fails when logfile.xml is empty In /var/xinc/projects/ProjectName/report: mv logfile.xml foo.xml touch logfile.xml Error in log: [info] [2008-05-27 20:40:27-US/Pacific] [build] ProjectName: BUILD PASSED [info] [2008-05-27 20:40:27-US/Pacific] Processing task: publishers [info] [2008-05-27 20:40:27-US/Pacific] [build] ProjectName: Processing publishers [info] [2008-05-27 20:40:27-US/Pacific] [build] ProjectName: Publishing with OnSuccess Publishers [info] [2008-05-27 20:40:27-US/Pacific] [build] ProjectName: Publishing with OnSuccess Publisher: Xinc_Plugin_Repos_Publisher_PHPUnitTestResults_Task [error] [2008-05-27 20:40:27-US/Pacific] Could not parse phpunit xml /var/xinc/status/ProjectName/20080527/1211945906/testresults/logfile.xml: #0 /usr/local/lib/php/Xinc/Plugin/Repos/Publisher/PHPUnitTestResults.php(120): SimpleXMLElement->__construct('') #1 /usr/local/lib/php/Xinc/Plugin/Repos/Publisher/PHPUnitTestResults.php(106): Xinc_Plugin_Repos_Publisher_PHPUnitTestResults->_parseXml(Object(Xinc_Build), '/var/xinc/statu...') #2 /usr/local/lib/php/Xinc/Plugin/Repos/Publisher/PHPUnitTestResults/Task.php(52): Xinc_Plugin_Repos_Publisher_PHPUnitTestResults->registerResults(Object(Xinc_Buil d), '/var/xinc/proje...') #3 /usr/local/lib/php/Xinc/Plugin/Repos/Publisher/OnSuccess/Task.php(59): Xinc_Plugin_Repos_Publisher_PHPUnitTestResults_Task->publish(Object(Xinc_Build)) #4 /usr/local/lib/php/Xinc/Plugin/Repos/Publisher/Task.php(66): Xinc_Plugin_Repos_Publisher_OnSuccess_Task->publish(Object(Xinc_Build)) #5 /usr/local/lib/php/Xinc/Build.php(529): Xinc_Plugin_Repos_Publisher_Task- >process(Object(Xinc_Build)) #6 /usr/local/lib/php/Xinc/Engine/Sunrise.php(212): Xinc_Build->process(30) #7 /usr/local/lib/php/Xinc/Build.php(627): Xinc_Engine_Sunrise->build(Object(Xinc_Build)) #8 /usr/local/lib/php/Xinc.php(318): Xinc_Build->build() #9 /usr/local/lib/php/Xinc.php(473): Xinc->processBuildsRunOnce() #10 /usr/local/lib/php/Xinc.php(554): Xinc->start(false) #11 /usr/local/bin/xinc(30): Xinc::main() #12 {main} Adding content to the logfile.xml fixes the problem. More documentation on the contents of the reports directory would be awesome.
Original issue reported on code.google.com by kwie...@gmail.com on 28 May 2008 at 3:45
kwie...@gmail.com
Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:08
opitz.al...@googlemail.com
Fixed.
Original comment by opitz.al...@googlemail.com on 1 Mar 2012 at 11:32
Original issue reported on code.google.com by
kwie...@gmail.com
on 28 May 2008 at 3:45