Skip to content

Instantly share code, notes, and snippets.

@evanhammer
Last active May 10, 2017 15:02
Show Gist options
  • Save evanhammer/346b2a56657f90bc2de793a126707998 to your computer and use it in GitHub Desktop.
Save evanhammer/346b2a56657f90bc2de793a126707998 to your computer and use it in GitHub Desktop.
Measure Unit Testing OKR
Github API: https://developer.github.com/v3/pulls/#list-pull-requests
1. Get all Closed Pull Requests updated during date period [requires paging]
2. Filter by label !== “test-exempt” [using the Issues API]
3. Filter by merged
4. == TOTAL
5. For each PR
a. Get all files
b. Filter by at least 1 filename including a test string
c. == TESTED
6. Compute %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment