Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
CircleCI has a feature that allows a project to display test results in the Tests tab for a given CI run. We're reporting our test results, but not doing so in the way that CircleCI expects. This PR addresses that, as well as a number of edge cases that cause the tests to not be fully reported.
In this PR
store_test_results
with the directory containing the tests results, instead of the test result file itself. See https://support.circleci.com/hc/en-us/articles/360021624194-Test-summary-troubleshooting-e
, so curly brackets have been added to make sure the command for converting gets executed prior to bash exiting the script early)Future Work
cargo test
doesn't capture print from threads rust-lang/rust#42474. At present the only easy workaround is to disable all application logging, but this is not a viable solution since it would make debugging failed tests on CI significantly more difficult.Demo
Here is what the Tests tab of a CI run currently looks like:
Here is what the Tests tab of a successful CI run will look like after this PR:
Here is what the Tests tab of a failed CI run will look like after this PR: