Title: Add agent skill for writing tests with full coverage by Copilot · Pull Request #1508 · usethis-python/usethis-python · GitHub
Open Graph Title: Add agent skill for writing tests with full coverage by Copilot · Pull Request #1508 · usethis-python/usethis-python
X Title: Add agent skill for writing tests with full coverage by Copilot · Pull Request #1508 · usethis-python/usethis-python
Description: New agent skill at .agents/skills/usethis-test-with-coverage/ to guide agents through achieving ≥95% code coverage on their changes, matching the project's Codecov thresholds.
Covers:
Scoped coverage measurement with pytest-cov (--cov=usethis.module --cov-report=term-missing)
HTML report generation for inspecting complex coverage gaps
Project coverage targets and automatic exclusion patterns
Iterative workflow: run → inspect missing lines → write targeted tests → repeat
Pre-push verification with --cov-fail-under=95
Example usage from the skill:
uv run pytest tests/path/to/test_module.py --cov=usethis.module_name --cov-report=term-missing -x -v
Original prompt
This section details on the original issue you should resolve
Open Graph Description: New agent skill at .agents/skills/usethis-test-with-coverage/ to guide agents through achieving ≥95% code coverage on their changes, matching the project's Codecov thresholds. Covers: Scoped c...
X Description: New agent skill at .agents/skills/usethis-test-with-coverage/ to guide agents through achieving ≥95% code coverage on their changes, matching the project's Codecov thresholds. Covers: Scop...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1508
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e20887f5-e494-c959-fa10-aedb6aa5111e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8F48:1F00:74D5F3:AB6621:6A4D0B8B |
| html-safe-nonce | 18af420610403e40f24d717cb0119b61b129342e8e5a2a86177533bdd007f108 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjQ4OjFGMDA6NzRENUYzOkFCNjYyMTo2QTREMEI4QiIsInZpc2l0b3JfaWQiOiI1MzU5MTk0NDQyMDc3ODk5NjU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 60222ed959e1a19f135dfb2198c6ced4cb500fd53579861c93615a9b2aad05e2 |
| hovercard-subject-tag | pull_request:3442462492 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1508/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | New agent skill at .agents/skills/usethis-test-with-coverage/ to guide agents through achieving ≥95% code coverage on their changes, matching the project's Codecov thresholds. Covers: Scoped c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width