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

test: increase code coverage for data/apport #484

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bdrung
Copy link
Collaborator

@bdrung bdrung commented Mar 21, 2025

Calling data/apport via subprocess.check_call will not be covered by coverage. Call into the data/apport code directly to get it covered.

pytest will fail with PermissionError and INTERNALERROR on cleanup when running all integration tests as root. So keep using subprocess.check_call for tests that set a different UID.

Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.93%. Comparing base (3164b24) to head (e195ccc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   83.92%   83.93%           
=======================================
  Files         101      101           
  Lines       20455    20461    +6     
  Branches     3215     3217    +2     
=======================================
+ Hits        17167    17173    +6     
- Misses       2839     2840    +1     
+ Partials      449      448    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdrung bdrung force-pushed the increase-coverage branch from 593746e to c6659e8 Compare March 24, 2025 16:36
Calling `data/apport` via `subprocess.check_call` will not be covered by
coverage. Call into the `data/apport` code directly to get it covered.

pytest will fail with PermissionError and INTERNALERROR on cleanup when
running all integration tests as root. So keep using
`subprocess.check_call` for tests that set a different UID.
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.

1 participant