This article addresses the issue where all tests are still being rerun after clicking "Rerun failed tests" in CircleCI. The following troubleshooting steps will help to resolve this specific problem.
Issue: All tests are still being rerun
If you find that all tests are being rerun after clicking "Rerun failed tests," please follow the steps below to resolve the issue.
Enable verbose mode: Make sure that the
--verbosesetting is enabled when invoking
circleci tests run. This will display the tests that
circleci tests runis receiving during a rerun.
Upload JUnit XML: Use the
store_artifactscommand to upload the JUnit XML file containing the test results to CircleCI. This is the same file(s) that is being uploaded with
Inspect JUnit XML: Manually inspect the newly uploaded JUnit XML via the Artifacts tab in CircleCI. Ensure that the XML file contains either a
file=attribute or a
classnameattribute. If neither attribute is present, unexpected behavior may occur when trying to rerun tests.
Check xargs presence: Additionally, ensure that
xargsis present in the