Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix coverage exclusions #6833

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
Sep 7, 2022
Merged

fix coverage exclusions #6833

merged 1 commit into from
Sep 7, 2022

Conversation

alexrashed
Copy link
Member

This PR fixes the coverage config to:

I verified the settings with the following commands locally:

TEST_PATH="tests/integration/test_sqs.py" make test-coverage
coverage combine
coverage html

This PR will unfortunately lower the code coverage percentage quite a lot, since the generated APIs had a high coverage:

  • They only contain the method and type signatures where loading them is a coverage hit.
  • They increase the total number of lines quite a lot (the generated code is quite big).

However, we don't want to green-wash our results. Once this PR is merged we can substantially increase the code coverage by identifying currently uncovered code and either removing it (if it's dead code), or write tests for these uncovered sections.

/cc @bentsku @thrau

@alexrashed alexrashed requested a review from whummer September 7, 2022 07:13
@alexrashed alexrashed temporarily deployed to localstack-ext-tests September 7, 2022 07:13 Inactive
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this @alexrashed ! 👍 Agree that it's better to report on the true net coverage and not green-wash the results. This will be a motivation to bump the coverage up into the green range again! 🚀 :)

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 13m 18s ⏱️ - 1m 59s
1 273 tests ±0  1 221 ✔️  - 1  52 💤 +1  0 ±0 
1 698 runs  ±0  1 615 ✔️  - 1  83 💤 +1  0 ±0 

Results for commit d93ed18. ± Comparison against base commit fb771a4d.

@alexrashed alexrashed merged commit 1d365c4 into master Sep 7, 2022
@alexrashed alexrashed deleted the fix-coverage-exclusions branch September 7, 2022 08:35
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