nunit - Jenkins CI: 'NumberFormatException: empty String' -


we have jenkins installation , projects tested nunit. works fine , writes nunit results xml file. have 'publish nunit test result report' post-build step. since friday produces error:

recording nunit tests results error: step ‘publish nunit test result report’ aborted due exception:  java.io.ioexception: remote file operation failed: c:\jenkins\workspace\xxx @ hudson.remoting.channel@205d5d5c:ciagent: java.io.ioexception: failed read c:\jenkins\workspace\xxx\temporary-junit-reports\test-xxx_tests.testswithrealservers.testwithtwolocals_1_2.xml     @ hudson.filepath.act(filepath.java:986)     @ hudson.filepath.act(filepath.java:968)     @ hudson.plugins.nunit.nunitpublisher.gettestresult(nunitpublisher.java:226)     [...]  caused by: java.io.ioexception: failed read c:\jenkins\workspace\xxx\temporary-junit-reports\test-xxx_tests.testswithrealservers.testwithtwolocals_1_2.xml     @ hudson.tasks.junit.testresult.parse(testresult.java:306)     @ hudson.tasks.junit.testresult.parsepossiblyempty(testresult.java:244)     @ hudson.tasks.junit.testresult.parse(testresult.java:175)     [...]     ... 13 more caused by: java.lang.numberformatexception: empty string     @ sun.misc.floatingdecimal.readjavaformatstring(unknown source)     @ sun.misc.floatingdecimal.parsefloat(unknown source)     @ java.lang.float.parsefloat(unknown source)     [...] archiving artifacts finished: failure 

the xml file present in working directory. mentioned first line of file looks this:

<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="xxx_tests.testswithrealservers.testwithtwolocals" skipped="6" tests="6" time=""> 

so guess fails because time attribe empty.

does how can fix or why error occurs? thanks!

did upgrade jenkins junit plugin 1.12? there reported issue in update. might try downgrading 1.11.


Comments

Popular posts from this blog

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -