|
1 | 1 | # Codecov Browser Extension for GitHub |
| 2 | + |
2 | 3 | [](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension?ref=badge_shield) |
3 | 4 |
|
4 | 5 | [](https://chrome.google.com/webstore/detail/codecov/gedikamndpbemklijjkncpnolildpbgo) |
|
9 | 10 |  |
10 | 11 |  |
11 | 12 |
|
12 | | - |
13 | 13 | <img width="1912" alt="image" src="https://user-images.githubusercontent.com/44864521/213549217-bed0071c-c5bc-4a12-944f-31ce15648ab7.png"> |
14 | 14 |
|
15 | | -Automatically see code coverage data and line annotations while browsing files or reviewing pull requests in GitHub. |
| 15 | +Automatically see code coverage data and line annotations while browsing files or reviewing pull requests in GitHub. |
16 | 16 |
|
17 | 17 | ## Installing |
18 | 18 |
|
19 | 19 | If you wish to simply use the extension, it is available as a [Firefox Add On](https://addons.mozilla.org/en-US/firefox/addon/codecov/) and a [Chrome Extension](https://chrome.google.com/webstore/detail/codecov/gedikamndpbemklijjkncpnolildpbgo). |
20 | 20 |
|
21 | | - |
22 | | -## About this extension |
| 21 | +## About this extension |
23 | 22 |
|
24 | 23 | The Codecov browser extension makes it easy to identify needed test areas by showing you absolute coverage and coverage changes overlaid with your code right in GitHub. |
25 | 24 |
|
26 | | -Once installed, get: |
27 | | - |
28 | | -* Line coverage information while viewing commits and single files |
29 | | -* Line coverage information and coverage totals on Pull Requests |
30 | | -* The ability to filter coverage using Flags and Components directly in the GitHub UI |
| 25 | +Once installed, get: |
31 | 26 |
|
| 27 | +- Line coverage information while viewing commits and single files |
| 28 | +- Line coverage information and coverage totals on Pull Requests |
| 29 | +- The ability to filter coverage using Flags and Components directly in the GitHub UI |
32 | 30 |
|
33 | | -Pre-requisites: |
| 31 | +Pre-requisites: |
34 | 32 |
|
35 | | -* Must use either Firefox or Google Chrome web browsers. |
| 33 | +- Must use either Firefox or Google Chrome web browsers. |
36 | 34 |
|
37 | | -How to enable: |
| 35 | +How to enable: |
38 | 36 |
|
39 | 37 | The extension uses your logged-in session to determine what private repos you have access to. Please make sure to log in to Codecov using your web browser to view coverage data for private repos in GitHub. |
40 | 38 |
|
41 | 39 | ## Use with Self-Hosted and Dedicated Cloud Versions of Codecov |
| 40 | + |
42 | 41 | You can use this extension against installations of Codecov and GitHub that are: |
43 | 42 |
|
44 | | -* Self-hosted |
45 | | -* Part of Codecov's Dedicated Cloud plan |
| 43 | +- Self-hosted |
| 44 | +- Part of Codecov's Dedicated Cloud plan |
46 | 45 |
|
47 | 46 | In order to do so you must provide: |
48 | 47 |
|
49 | | -* The URL of the Codecov installation |
50 | | -* The URL of your GitHub installation (even if that url is just https://github.com) |
51 | | -* [An API token for Codecov](https://docs.codecov.com/reference/overview) |
| 48 | +- The URL of the Codecov installation |
| 49 | +- The URL of your GitHub installation (even if that url is just https://github.com) |
| 50 | +- [An API token for Codecov](https://docs.codecov.com/reference/overview) |
| 51 | + |
| 52 | +You can provide this information by using the Settings menu for the Extension in your browser. |
| 53 | + |
| 54 | +## Using the Safari extension |
52 | 55 |
|
53 | | -You can provide this information by using the Settings menu for the Extension in your browser. |
| 56 | +We have published a Safari port of the extension, but it comes with the caveat that you _must_ use a Codecov API token for the extension to work. |
| 57 | + |
| 58 | +To use the extension with a cloud Codecov API token, follow the instructions [above](#use-with-self-hosted-and-dedicated-cloud-versions-of-codecov), but generate the API token in [cloud Codecov](https://app.codecov.io) and use the cloud urls for Codecov's API (`https://api.codecov.io`) and Github (`https://github.com`). Note that this also works on Chrome and Firefox, should you want to do that. |
| 59 | + |
| 60 | +We may fix this restriction in the future should the demand exist, but for now, this is just a low effort conversion provided as is. |
54 | 61 |
|
55 | 62 | ## Running Locally |
| 63 | + |
56 | 64 | ```sh |
57 | 65 | $ web-ext run -s dist -t chromium |
58 | 66 | ``` |
59 | 67 |
|
60 | | -**Note**: You must be on GitHub's new UI for this extension to perform its magic. ✨ |
| 68 | +**Note**: You must be on GitHub's new UI for this extension to perform its magic. ✨ |
61 | 69 |
|
62 | 70 | As of today, GitHub will show you the old UI if not logged in (running in a temporary profile using web-ext). |
63 | 71 |
|
@@ -87,9 +95,8 @@ $ cp dist/manifest.firefox.json dist/manifest.json |
87 | 95 |
|
88 | 96 | ## About Codecov |
89 | 97 |
|
90 | | -[Codecov](https://about.codecov.io) is the all-in-one code coverage reporting solution for any test suite - giving developers actionable insights to deploy reliable code with confidence. |
91 | | - |
92 | | - |
| 98 | +[Codecov](https://about.codecov.io) is the all-in-one code coverage reporting solution for any test suite - giving developers actionable insights to deploy reliable code with confidence. |
93 | 99 |
|
94 | 100 | ## License |
| 101 | + |
95 | 102 | [](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension?ref=badge_large) |
0 commit comments