Okay, I have mostly solved this. It seems that the xUnit plug-in did not 
like the dummy JUnit XML code that I was feeding it. I rejigged my test 
script to feed one of the example JUnit XML files from 
http://junitpdfreport.cvs.sourceforge.net/junitpdfreport/src/resources/examples/testresults/
 
 into Jenkins, and it worked. So I'll have to make sure that my own XML 
conforms to that standard. I had been using the advice on JUnit XML 
structure from this Google Test 
page: http://code.google.com/p/googletest/wiki/AdvancedGuide . So either 
that's not exactly what the xUnit plug-in demands, or I made some mistake 
in constructing my own XML test file based on it. One trivial issue was 
that my XML had an accidental leading blank line, and the xUnit plug-in 
choked on that, with the same cryptic message "The plugin hasn't been 
performed correctly: remote file operation failed". That's one unforgiving 
and unhelpful parser!

On Wednesday, October 31, 2012 10:53:10 PM UTC-5, Jonathan Rice wrote:
>
> I can't get even a supposedly simple JUnit test working on my OS X Jenkins 
> system. Can anyone give any advice? I have a test script which just prints 
> the following dummy JUnit XML text to $(WORKSPACE)/dummy_junit.xml:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <testsuites tests="3" failures="1" errors="0" time="35" name="AllTests">
>   <testsuite name="MathTest" tests="2" failures="1"* errors="0" time="15">
>     <testcase name="Addition" status="run" time="7" classname="">
>       <failure message="Value of: add(1, 1) Actual: 3 Expected: 2" type=""/>
>       <failure message="Value of: add(1, -1) Actual: 1 Expected: 0" type=""/>
>     </testcase>
>     <testcase name="Subtraction" status="run" time="5" classname="">
>     </testcase>
>   </testsuite>
>   <testsuite name="LogicTest" tests="1" failures="0" errors="0" time="5">
>     <testcase name="NonContradiction" status="run" time="5" classname="">
>     </testcase>
>   </testsuite>
> </testsuites>
>
>
> Running on either a slave or the master, Jenkins finds the XML file fine, 
> but it then fails with "The plugin hasn't been performed correctly: remote 
> file operation failed":
>
>
> [xUnit] [INFO] - Starting to record.
> [xUnit] [INFO] - Processing JUnit
> [xUnit] [WARNING] - Can't create the path 
> /tmp/master/workspace/dummy_junit/generatedJUnitFiles. Maybe the directory 
> already exists.
> [xUnit] [INFO] - [JUnit] - 1 test report file(s) were found with the pattern 
> 'dummy_junit.xml' relative to '/tmp/master/workspace/dummy_junit' for the 
> testing framework 'JUnit'.
> [xUnit] [ERROR] - The plugin hasn't been performed correctly: remote file 
> operation failed: /tmp/master/workspace/dummy_junit at 
> hudson.remoting.Channel@6deb6c9:master
> Build step 'Publish xUnit test result report' changed build result to FAILURE
> Build step 'Publish xUnit test result report' marked build as failure
> Finished: FAILURE
>
>
> I've found mention of this error in one or two previous discussions, but with 
> no resolution. Is this likely to be something as simple as file permissions 
> or something? Is there any way to get further debugging information out of 
> this?
>
>

Reply via email to