You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,22 +72,20 @@ Steps:
72
72
- Cache is stored at the end of the job on cache miss. Cache is not updated on cache hit.
73
73
74
74
2. Generate test results and code coverage data.
75
-
1. It installs [cargo2junit](https://github.com/johnterickson/cargo2junit) needed for formatting the test result and [grcov](https://github.com/mozilla/grcov)and [rust-covfix](https://github.com/Kogia-sima/rust-covfix)for code coverage.
75
+
1. It installs [cargo2junit](https://github.com/johnterickson/cargo2junit) needed for formatting the test result and [grcov](https://github.com/mozilla/grcov) for code coverage.
76
76
3. It runs `cargo test` in the nightly toolchain.
77
-
-`--features coverage` adds a `rust-covfix` feature that allows disabling inlining functions for code coverage. [Learn more.](https://github.com/Kogia-sima/rust-covfix#1-avoid-inlining-the-functions-optional)
78
77
-`$CARGO_OPTIONS` includes `CARGO_INCREMENTAL`, `RUSTFLAGS`, and `RUSTDOCFLAGS` options needed for code coverage.
79
78
-`-Z unstable-options --format json` formats the test result into json.
80
79
-` | cargo2junit > results.xml` converts the json result into junit format for `EnricoMi/publish-unit-test-result-action` to understand and saves it as `results.xml`.
81
80
4. It generates code coverage data in lcov format through `grcov` saved as `lcov.info`.
82
-
5. It runs `rust-covfix` to fix incorrect Rust coverage data and saves the corrected data as `lcov_correct.info`.
83
81
84
82
3. Upload test results.
85
83
It uploads the test result (`results.xml`) through [EnricoMi/publish-unit-test-result-action@v1](https://github.com/EnricoMi/publish-unit-test-result-action).
86
84
- The action outputs the test result (**Test Results** added to a random workflow).
87
85
- For pull requests, the action adds a comment containing the test results.
88
86
89
87
4. Upload to CodeCov.
90
-
It uploads the code coverage result (`lcov_correct.info`) to CodeCov through [codecov/codecov-action@v1](https://github.com/codecov/codecov-action).
88
+
It uploads the code coverage result (`lcov.info`) to CodeCov through [codecov/codecov-action@v1](https://github.com/codecov/codecov-action).
91
89
- For pull requests, the actions adds a comment containing the code coverage report.
92
90
- For private repositories, add your token from CodeCov repository setting on GitHub Secrets and uncomment the line: `token: ${{ secrets.CODECOV_TOKEN }}`.
0 commit comments