title: CircleCI: How do I configure test result storage?
body: <p>I'm using Cypress integration tests in a CircleCI environment. Currently my CircleCI configuration fails to store the test reports as artifacts and include a summary. The screenshots and videos are successfully stored. I'm including the <code>config.yml</code> and screenshots of the CircleCI dashboard.</p>
  
  <p>I've consulted these pages of the CircleCI documentation:</p>
  
  <ul>
  <li><a href="https://circleci.com/docs/2.0/configuration-reference/#store_test_results" rel="nofollow noreferrer">Configuring CircleCI | <code>store_test_results</code></a></li>
  <li><a href="https://circleci.com/docs/2.0/artifacts/" rel="nofollow noreferrer">Storing and Accessing Build Artifacts</a></li>
  </ul>
  
  <p>And have noted the similarity of my question to <a href="https://stackoverflow.com/questions/47236086/test-summary-not-populated-with-test-results-in-circleci">"Test Summary Not Populated With Test Results in CircleCI"</a>.</p>
  
  <p>Any pointers would be appreciated. Thank you!</p>
  
  <p><strong><code>config.yml</code></strong></p>
  
  <pre><code>version: 2
  jobs:
    build:
      working_directory: ~/nodefront
      docker:
        - image: cypress/base:6
          environment:
            TERM: xterm
      parallelism: 1
      steps:
        - checkout
        - restore_cache:
            name: Restoring cached yarn dependencies
            key: v3-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
        - run:
            name: Installing dependencies with yarn
            command: |
              yarn install --frozen-lockfile
              yarn list
        - save_cache: 
            name: Caching yarn dependencies
            key: v3-deps-{{ checksum "package.json" }}
            paths:
              - ~/.cache
        - run: mkdir -p integration-tests/test-results/junit integration-tests/cypress/videos integration-tests/cypress/screenshots
        - run:
            name: Running E2E tests with JUnit reporter
            command: $(yarn bin)/cypress run --project ./integration-tests --reporter junit --record --key 77ffe06e-0fe2-4b33-a5ff-4dcdf9e31c91
            environment: 
              MOCHA_FILE: integration-tests/test-results/junit/test-results-[hash].xml
            when: always
        - store_test_results:
            path: integration-tests/test-results
        - store_artifacts:
            path: integration-tests/test-results
        - store_artifacts:
            path: integration-tests/cypress/videos
        - store_artifacts:
            path: integration-tests/cypress/screenshots
  </code></pre>
  
  <p><strong>Screenshots</strong>
  <img src="https://i.imgur.com/C877OeO.png" alt="Test summary fails">
  <img src="https://i.imgur.com/kdGR8C8.png" alt="Screenshots and videos succeed"></p>