jvoegele/gradle-android-plugin — Issue #44: publish test report failure
Author: xinthink
Created: 2012-02-03 09:40:59+00:00
State: open

I try to use JUnitReportTestRunner, but I got this error:

```sh
Publishing test results from /data/data/app/files/instrumentation-tests-0.xml to /prj/app-test/build/test-results
!! Failed to publish test reports
```

JUnitReportTestRunner works fine, the xml file was there, but failed when exec 'adb pull'
I tried the adb pull in command line, I found that adb pull only accept two dirs or two files
and I modified InstrumentationTestsTask to pass two files to adb pull, but I got a NullPointer exception this time:

```java
Caused by: java.lang.NullPointerException
at org.gradle.api.internal.AbstractTask$TaskInfo.access$000(AbstractTask.java:435)
at org.gradle.api.internal.AbstractTask.(AbstractTask.java:106)
at org.gradle.api.internal.AbstractTask.(AbstractTask.java:96)
at org.gradle.api.DefaultTask.(DefaultTask.java:31)
at com.jvoegele.gradle.tasks.android.AdbExec.(AdbExec.groovy)
at com.jvoegele.gradle.tasks.android.instrumentation.InstrumentationTestsTask.publishTestReport(InstrumentationTestsTask.groovy:139)
```

Please help.