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

[wallet/desktop] feat: added nyc intg, enabled ci coverage check #1869

Merged
merged 3 commits into from
Jun 9, 2022

Conversation

yilmazbahadir
Copy link
Contributor

@yilmazbahadir yilmazbahadir commented Jun 9, 2022

What was the issue?

  • CI unit test coverage threshold check was not enabled
  • desktop-wallet is using Jest test runner and CI was using nyc to check target the coverage threshold, needed to find a way to integrate these two

What's the fix

  • Enabled the CI unit test coverage threshold check (currently it's 22% in order not to let the build fail)
  • Integrated nyc to be able to check if the minimum target coverage is met in the CI
  • Added the following badges to the Readme (expecting codecov badge to show correct info after the merge)

image


# copy jest coverage json report to .nyc_output so that ci coverage threshold check can work
cd $(git rev-parse --show-toplevel)
mkdir -p .nyc_output && cp ./coverage/coverage-final.json ./.nyc_output 2>/dev/null || :

Choose a reason for hiding this comment

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

and newline at EOF

Jaguar0625
Jaguar0625 previously approved these changes Jun 9, 2022
@yilmazbahadir
Copy link
Contributor Author

Thanks for the review @Jaguar0625, merging now as I just pushed a newline fix after your approval.

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.

2 participants