title: Hudson Android multi-configuration test project can't find test results - "No test report files were found. Configuration error?"
body: <p>I have android test project that i've integrated into the Hudson. I have created a free-style software project with next settings : 
  1. <strong>Source Code Management</strong> - custom workspace
  2. <strong>Run an Android emulator during build</strong> : 
  * Android OS Version: 4.0.3
  * Screen density: 240
  * Screen resolution: WVGA
  * Device locale: en_US
  * SD card size: 16M
  3. <strong>Invoke Ant</strong>: 
  Target: all clean emma debug install test
  Build File: workspace/Project/build.xml
  4. <strong>Post-build Actions</strong>
  * Archive the artifacts: **/*test-TEST.xml
  * Publish JUnit test result report: **/*test-TEST.xml
  * Record Emma coverage report: **/coverage.xml
  * Record fingerprints of files to track usage: **/*test-TEST.xml
  Here's build.xml file part that covers my ant target:</p>
  
  <pre><code>    &lt;!-- version-tag: custom --&gt;
      &lt;target name="test" depends="-test-project-check"
                  description="Runs tests from the package defined in test.package property"&gt;
  
          &lt;property name="tested.project.absolute.dir" location="${tested.project.dir}" /&gt;
  
          &lt;property name="test.runner" value="android.test.InstrumentationTestRunner" /&gt;
  
          &lt;!-- Application package of the tested project extracted from its manifest file --&gt;
          &lt;xpath input="${tested.project.absolute.dir}/AndroidManifest.xml"
                  expression="/manifest/@package" output="tested.manifest.package" /&gt;
          &lt;xpath input="AndroidManifest.xml"
                  expression="/manifest/@package" output="manifest.package" /&gt;
  
          &lt;property name="emma.dump.file"
                  value="/data/data/${tested.manifest.package}/coverage.ec" /&gt;
  
          &lt;if condition="${emma.enabled}"&gt;
              &lt;then&gt;
                  &lt;echo&gt;WARNING: Code Coverage is currently only supported on the emulator and rooted devices.&lt;/echo&gt;
                  &lt;run-tests-helper emma.enabled="true"&gt;
                      &lt;extra-instrument-args&gt;
                          &lt;arg value="-e" /&gt;
                             &lt;arg value="coverageFile" /&gt;
                             &lt;arg value="${emma.dump.file}" /&gt;
                      &lt;/extra-instrument-args&gt;
                  &lt;/run-tests-helper&gt;
                  &lt;echo&gt;Downloading coverage file into project directory...&lt;/echo&gt;
                  &lt;exec executable="${adb}" failonerror="true"&gt;
                      &lt;arg line="${adb.device.arg}" /&gt;
                      &lt;arg value="pull" /&gt;
                      &lt;arg value="${emma.dump.file}" /&gt;
                      &lt;arg value="coverage.ec" /&gt;
                  &lt;/exec&gt;
                  &lt;echo&gt;Extracting coverage report...&lt;/echo&gt;
                  &lt;emma&gt;
                      &lt;report sourcepath="${tested.project.absolute.dir}/${source.dir}"
                                        verbosity="${verbosity}"&gt;
                          &lt;!-- TODO: report.dir or something like should be introduced if necessary --&gt;
                          &lt;infileset dir="."&gt;
                              &lt;include name="coverage.ec" /&gt;
                              &lt;include name="coverage.em" /&gt;
                          &lt;/infileset&gt;
                          &lt;!-- TODO: reports in other, indicated by user formats --&gt;
                          &lt;html outfile="${basedir}/coverage/coverage.html" /&gt;
                          &lt;xml outfile="${basedir}/coverage/coverage.xml" /&gt;
                     &lt;/report&gt;
                  &lt;/emma&gt;
                  &lt;echo&gt;Cleaning up temporary files...&lt;/echo&gt;
                  &lt;delete file="coverage.ec" /&gt;
                  &lt;delete file="coverage.em" /&gt;
                  &lt;echo&gt;Saving the report file in ${basedir}/coverage/coverage.html&lt;/echo&gt;
              &lt;/then&gt;
              &lt;else&gt;
                  &lt;run-tests-helper /&gt;
              &lt;/else&gt;
          &lt;/if&gt;
          &lt;mkdir dir="${basedir}/junit-results" /&gt;
          &lt;echo&gt;Base dir is ${basedir}&lt;/echo&gt;
          &lt;exec executable="${adb}" failonerror="true" dir="${basedir}/junit-results"&gt;
              &lt;arg line="${adb.device.arg}" /&gt;
              &lt;arg value="pull" /&gt;
              &lt;arg value="/data/data/${tested.manifest.package}/files/" /&gt;
          &lt;/exec&gt;
      &lt;/target&gt;    
      &lt;import file="${sdk.dir}/tools/ant/build.xml" /&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Now, this project works fine and i get both emma coverage and test results, but when i configured multi-configuration project with the same options, except for android emulator i set different variables with os, density and screen resolution, i got stuck with one error - </p>
  
  <pre><code>test:
       [echo] WARNING: Code Coverage is currently only supported on the emulator and rooted devices.
       [echo] Running tests ...
       [exec] 
       [exec] com.mobclix.android.externaltestharness.test.UnitActivityTest:.
       [exec] Test results for PolideaInstrumentationTestRunner=.
       [exec] Time: 25.122
       [exec] 
       [exec] OK (1 test)
       [exec] 
       [exec] 
       [exec] Generated code coverage data to /data/data/com.mobclix.android.externaltestharness/coverage.ec
       [echo] Downloading coverage file into project directory...
       [exec] 355 KB/s (2043 bytes in 0.005s)
       [echo] Extracting coverage report...
       [echo] Cleaning up temporary files...
     [delete] Deleting: /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage.ec
     [delete] Deleting: /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage.em
       [echo] Saving the report file in /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage/coverage.html
       [echo] Base dir is /Users/biercoff/Work/Workspace/HarnessExternalTest
       [exec] pull: building file list...
       [exec] pull: /data/data/com.mobclix.android.externaltestharness/files/com.mobclix.android.externaltestharness.test-TEST.xml -&gt; ./com.mobclix.android.externaltestharness.test-TEST.xml
       [exec] 1 file pulled. 0 files skipped.
       [exec] 40 KB/s (499 bytes in 0.012s)
  
  BUILD SUCCESSFUL
  Total time: 1 minute 20 seconds
  $ /Users/biercoff/.hudson/tools/android-sdk/platform-tools/adb disconnect localhost:53830
  [android] Stopping Android emulator
  [android] Archiving emulator log
  $ /Users/biercoff/.hudson/tools/android-sdk/platform-tools/adb kill-server
  Recording fingerprints
  Recording test results
  No test report files were found. Configuration error?
  Archiving artifacts
  Description set: 
  Emma: looking for coverage reports in the provided path: /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage/coverage.xml
  Emma: found 1 report files: 
            /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage/coverage.xml
  Emma: stored 1 report files in the build folder: /Users/biercoff/.hudson/jobs/MulitTestHarnessProject/configurations/axis-density/240/axis-os/4.0.3/axis-resolution/WVGA/builds/2012-05-18_17-26-05/emma
  Emma: Coverage: Classes 21/39 (54%). Methods 40/128 (31%). Blocks 833/2928 (28%). Lines 154.5/528 (29%). 
  [DEBUG] Skipping watched dependency update for build: MulitTestHarnessProject/density=240,os=4.0.3,resolution
  </code></pre>
  
  <p>For emma coverage i had to change path in Hudson into  /Users/biercoff/Work/Workspace/HarnessExternalTest/coverage/coverage.xml to make it work, 
  but when i tried to do the same thing for Junit test results, Hudson refused to "see" it. File is in the project folder under junit-results folder, but everytime i run new build, i get the same <em>No test report files were found. Configuration error?</em> error message. Tried many variations, but no luck. I'm missing probably something really tiny. Could somebody help me, please? </p>