Back to all projects
GitHub Test Lens
A Chrome extension that tells test files from production code everywhere GitHub lists files.
JavaScript
Chrome Extension
Manifest V3
GitHub
GitHub Test Lens is a Manifest V3 Chrome extension that classifies every file GitHub lists as production, test, test support, or benchmark code, decided from its path. It works across pull request diffs, commits, compare views, the diff tree, the repository browser, file pages, and code search.
Key features include:
- TEST, TEST SUPPORT, and BENCH badges with tooltips naming the rule that matched
- A summary bar with production and test line counts, test share, and a no-test-changes warning
- All, Production, and Tests filters plus one-click collapsing of test diffs
- An Exclude tests toggle that recomputes pull request totals without test lines
- Custom rules, per-ecosystem built-in rules, and GitHub Enterprise host support
- No build step, no dependencies, and no telemetry