Skip to content

chore: Fail build if code coverage is too low #153

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

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

farleyb-amazon
Copy link
Contributor

@farleyb-amazon farleyb-amazon commented Mar 22, 2021

Description of changes:
Remove code coverage from base python command, add a dedicated code coverage environment, as well as code build specs to run it.

See also: aws/aws-encryption-sdk-python#325

Threshold of 90% chosen because current coverage is 91%.

Testing:
Building gives me:

Required test coverage of 90.0% reached. Total coverage: 91.05%

If I bump the threshold to 95, the build fails with:

FAIL Required test coverage of 95.0% not reached. Total coverage: 91.05%

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@farleyb-amazon farleyb-amazon merged commit 2160156 into aws:master Mar 26, 2021
@farleyb-amazon farleyb-amazon deleted the code-coverage branch March 26, 2021 17:13
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