CircleCI Test Summary not working

Hi,
I am using CircleCI 2.1 template. I’m trying to store my code coverage into a codecoverage folder by adding the step store_test_results. And just be sure, I have also stored my test artifacts. I can see the artifacts generated but I am unable to see the Test Summary. It’s still showing the message

“To view XML test results, add the step store_test_results to your config.yml file.”

  code-coverage:
    executor: python3-executor
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip3 install coverage pytest pytest-html
      - run:
          name: Code coverage
          command: |
            . venv/bin/activate
            coverage run -m pytest
            coverage report  && coverage xml -o codecoverage/coverage.xml
      - store_test_results:
          path: codecoverage
      - store_artifacts:
          path: codecoverage

Actually, I figure it out using --junitxml flag on the pytest to generate xml report.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.