[WIP] Add CI badge to display test count#1034
Merged
SkBlaz merged 4 commits intomasterSkBlaz/py3plex:masterfrom Jan 9, 2026
copilot/add-ci-badge-for-testsSkBlaz/py3plex:copilot/add-ci-badge-for-testsCopy head branch name to clipboard
Merged
[WIP] Add CI badge to display test count#1034SkBlaz merged 4 commits intomasterSkBlaz/py3plex:masterfrom copilot/add-ci-badge-for-testsSkBlaz/py3plex:copilot/add-ci-badge-for-testsCopy head branch name to clipboard
SkBlaz merged 4 commits intomasterSkBlaz/py3plex:masterfrom
copilot/add-ci-badge-for-testsSkBlaz/py3plex:copilot/add-ci-badge-for-testsCopy head branch name to clipboard
Conversation
- Create count_tests.py script to count test functions using AST parsing - Add test-count.yml workflow that runs on push/PR - Workflow updates README badge automatically on push to main branches - Add test count badge (6.1K tests) to README.md - Add test-stats.json to .gitignore Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
- Use errors='replace' instead of 'ignore' for better visibility of file encoding issues - Fix sed regex to handle plain numbers and K/M suffixes (not just K) Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
- Document why errors='ignore' is used (to skip binary files) Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot stopped work on behalf of
SkBlaz due to an error
January 9, 2026 20:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: Add CI Badge for Test Count
Summary
Successfully added a CI badge that displays the total number of test functions (6.1K tests across 391 files) in the py3plex test suite. The implementation follows the same pattern as the existing LOC badge workflow and will automatically update when tests are added or removed.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.