Unable to save test results in CircleCI 2.1

I’m using a very basic version 2.1 yml file:

version: 2.1

maven: circleci/maven@0.0.12

- maven/test # checkout, build, test, and upload test results

When the step Uploading Test Results is run, I get the following message:

Unable to save test results from /home/circleci/project/target/surefire-reports
Error path is not valid /home/circleci/project/target/surefire-reports: error accessing path: /home/circleci/project/target/surefire-reports: lstat /home/circleci/project/target/surefire-reports: no such file or directory
Found no test results, skipping

I’m guessing that I’m missing something in the configuration, but I’m new to CircleCI especially 2.1. Can anyone offer assistance with this config? Thanks in advance.

Hi @kstough93! Welcome to the community.

You can use the store_test_results option or opt to save the test results as artifacts. Examples here!