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

fix: run coverage before pytest #66

Merged
merged 1 commit into from
Jan 8, 2024
Merged

fix: run coverage before pytest #66

merged 1 commit into from
Jan 8, 2024

Conversation

12rambau
Copy link
Owner

@12rambau 12rambau commented Jan 8, 2024

Fix #65

According to https://stackoverflow.com/questions/62221654/how-to-get-coverage-reporting-when-testing-a-pytest-plugin the plugins themselves cannot be tested with pytest-cov as the coverage session needs to start before the plugins are actually loaded.

Following the instructions of the answer I changed the noxfile file content to launch coverage manually and export the report in xml.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7c6649c) 0.00% compared to head (309bae1) 96.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##            main      #66       +/-   ##
==========================================
+ Coverage   0.00%   96.00%   +96.00%     
==========================================
  Files          2        2               
  Lines         75       75               
==========================================
+ Hits           0       72       +72     
+ Misses        75        3       -72     

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

@12rambau 12rambau merged commit 5f1f51d into main Jan 8, 2024
13 checks passed
@12rambau 12rambau deleted the coverage branch January 8, 2024 06:52
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.

understand why coverage is 0%
1 participant