title: how to create test report files for bitbucket pipelines?
body: <p>How does one create test result files for bitbucket pipelines?
  My bitbucket <code>bitbucket-pipelines.yml</code> contains:</p>
  <pre><code>options:
    docker: true
  
  pipelines:
    default:
      - step:
          name: test bitbucket pipelines stuff..
          script: # Modify the commands below to build your repository.
            - /bin/bash -c 'mkdir test-results; echo Error Hello, World &gt;&gt; test-results/test1.txt; find'
  </code></pre>
  <p>and when running this pipeline i get</p>
  <pre><code>/bash -c 'mkdir test-results; echo Error Hello, World &gt;&gt; test-results/test1.txt; find'
  &lt;1s
  + /bin/bash -c 'mkdir test-results; echo Error Hello, World &gt;&gt; test-results/test1.txt; find'
  .
  (... censored/irrelevant stuff here)
  ./test-results
  ./test-results/test1.txt
  
  </code></pre>
  <p>then i get the &quot;build teardown&quot; saying it can't find test-results/test1.txt:</p>
  <pre><code>Build teardown
  &lt;1s
  Searching for test report files in directories named
   [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
  Finished scanning for test reports. Found 0 test report files.
  Merged test suites, total number tests is 0, with 0 failures and 0 errors.
  </code></pre>
  <p>i am surprised that it failed to find the <code>./test-results/test1.txt</code> file.. hence the question.</p>