Store_test_results is producing error "Found no test results, skipping"

Hello,

I’m trying to run a simple Cypress test that produces a Mochawesome report, but CircleCI is producing an error “Found no test results, skipping”.

I followed the directions on both the Cypress Reports docs and CircleCi’s Cypress orb docs.

The Config file looks like:


version: 2.1
orbs:
  cypress: cypress-io/cypress@2.2.0
  slack: circleci/slack@4.10.1

workflows:
  Regression_Pack:
    jobs: 
      - cypress/run:
          command: npx cypress run --spec cypress/e2e/Regression_Pack/*
          store_artifacts: true
          record: true
          post-steps:
            - store_test_results:
                path: mochawesome-report

Within the Cypress project there is a folder ‘mochawesome-report’ which is successfully producing an html and json report when run locally.

Any ideas what I’m doing wrong?

Hi @JackMunn,

You will have to generate an XML report and point the store_test_results step to that file. If I remember correctly, JSON and HTML doesn’t work.

Cheers,
Indro