GitHub PR Prod/Test Line Split 作者: mops
Splits a pull request's +/− line counts into production code and test code.
扫码在 Android 版 Firefox 中打开此扩展
扩展元数据
屏幕截图
关于此扩展
Shows how much of a pull request is production code and how much is tests.
On a pull request page, GitHub's line count "+416 −11" becomes:
prod +146 −9 | test +270 −2 | +416 −11
How it works
• Reads the per-file line counts GitHub already loads for the PR's "Files changed" view, using your normal GitHub session. Private repositories work.
• A file counts as test code when its path looks like one: test/, tests/, src/test/, tests/, spec/, e2e/, fixtures/, .test., .spec., _test., FooTest.kt / FooTests.cs, test_*.py.
• Works on the Conversation, Commits, Checks and Files changed tabs, in both the old and the new GitHub UI.
On a pull request page, GitHub's line count "+416 −11" becomes:
prod +146 −9 | test +270 −2 | +416 −11
How it works
• Reads the per-file line counts GitHub already loads for the PR's "Files changed" view, using your normal GitHub session. Private repositories work.
• A file counts as test code when its path looks like one: test/, tests/, src/test/, tests/, spec/, e2e/, fixtures/, .test., .spec., _test., FooTest.kt / FooTests.cs, test_*.py.
• Works on the Conversation, Commits, Checks and Files changed tabs, in both the old and the new GitHub UI.
评分 0(1 位用户)
权限与数据
更多信息