Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

Add code coverage to CI #204

Merged
merged 8 commits into from
Jul 27, 2019
Merged

Add code coverage to CI #204

merged 8 commits into from
Jul 27, 2019

Conversation

AzureMarker
Copy link
Contributor

Code coverage is generated by using the profile compiler option (must be run on x86_64-gnu, not musl), along with some other options. The data is consolidated by grcov and shipped off to Codecov.

This follows the same code coverage workflow as the IntelliJ Rust plugin uses, introduced in the most recent release:
https://intellij-rust.github.io/2019/07/22/changelog-102.html

Closes #140

Code coverage is generated by using the `profile` compiler option, along
with some other options. The data is consolidated by [`grcov`] and
shipped off to Codecov.

This follows the same code coverage workflow as the IntelliJ Rust plugin
uses, introduced in the most recent release:
https://intellij-rust.github.io/2019/07/22/changelog-102.html

[`grcov`]: https://github.com/mozilla/grcov

Signed-off-by: Mcat12 <[email protected]>
The profiler is not included in the x86_64-musl target.

Signed-off-by: Mcat12 <[email protected]>
The tests now compile using a different target, so the new build files
were not getting cached.

Signed-off-by: Mcat12 <[email protected]>
They are not meant to compile. Trying to make them compile requires
exporting the service macro and structs, along with adding a lot more
code to the test.

Signed-off-by: Mcat12 <[email protected]>
It is a build script, and can't be tested via `cargo test`.

Signed-off-by: Mcat12 <[email protected]>
@AzureMarker AzureMarker requested a review from a team July 23, 2019 05:13
@codecov
Copy link

codecov bot commented Jul 23, 2019

Codecov Report

❗ No coverage uploaded for pull request base (development@d4cc463). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             development     #204   +/-   ##
==============================================
  Coverage               ?   69.28%           
==============================================
  Files                  ?       91           
  Lines                  ?     6258           
  Branches               ?     1155           
==============================================
  Hits                   ?     4336           
  Misses                 ?      979           
  Partials               ?      943
Impacted Files Coverage Δ
src/service.rs 47.36% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4cc463...1e98676. Read the comment docs.

@AzureMarker AzureMarker merged commit 350e77c into development Jul 27, 2019
@AzureMarker AzureMarker deleted the feature/code-coverage branch July 27, 2019 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants