Skip to content

chore: Add dedicated code coverage tox environment #201

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 1 commit into from
Mar 26, 2021

Conversation

farleyb-amazon
Copy link
Contributor

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

See also aws/aws-encryption-sdk-python#325, aws/aws-dynamodb-encryption-python#153

Differences from the other PRs:

  • CLI's code coverage isn't as good, so I have to set the threshold a fair bit lower
  • Because of above, I'm including both integ and unit tests in the coverage check

Testing:
Confirmed build fails if I try to set the coverage threshold higher.

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

@@ -9,6 +9,7 @@ branch = True

[coverage:report]
show_missing = True
fail_under = 70
Copy link
Contributor

Choose a reason for hiding this comment

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

This, on the other hand [1], we definitely have to get higher. :)

[1] https://github.com/aws/aws-encryption-sdk-python/pull/325/files#r602435534

@farleyb-amazon farleyb-amazon merged commit 31ae40e 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