Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source-based code coverage #451

Merged
merged 10 commits into from
Mar 10, 2021
Merged

Source-based code coverage #451

merged 10 commits into from
Mar 10, 2021

Conversation

Adam-Gleave
Copy link
Contributor

@Adam-Gleave Adam-Gleave commented Mar 5, 2021

Description of change

New test coverage action using Cargo's source-based coverage tools. This can also be run locally using the bash script with the repository root as the working directory.

Links to any relevant issues

Addresses issue #438.

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

The workflow has been run on my fork and passed, with test coverage for all Bee crates: results here.

Change checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@Adam-Gleave Adam-Gleave linked an issue Mar 5, 2021 that may be closed by this pull request
.github/workflows/scripts/coverage.sh Outdated Show resolved Hide resolved
.github/workflows/coverage.yml Outdated Show resolved Hide resolved
.github/workflows/scripts/coverage.sh Outdated Show resolved Hide resolved
.github/workflows/coverage.yml Show resolved Hide resolved
Adam Gleave and others added 2 commits March 10, 2021 11:40
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
@rajivshah3
Copy link
Member

Nice! I was considering doing the same for wallet.rs as grcov hasn't been too reliable

rajivshah3
rajivshah3 previously approved these changes Mar 10, 2021
Copy link
Member

@rajivshah3 rajivshah3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I might have to steal this 😄

.github/workflows/coverage.yml Show resolved Hide resolved
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate code coverage
4 participants