Skip to content

Commit 4d75544

Browse files
Merge pull request #89 from codecov/spalmurray/safari-docs
Update README.md with Safari instructions
2 parents 10b334a + 83227c2 commit 4d75544

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

README.md

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Codecov Browser Extension for GitHub
2+
23
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension?ref=badge_shield)
34

45
[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/gedikamndpbemklijjkncpnolildpbgo)](https://chrome.google.com/webstore/detail/codecov/gedikamndpbemklijjkncpnolildpbgo)
@@ -9,55 +10,62 @@
910
![Mozilla Add-on Users](https://img.shields.io/amo/users/%7Bf3924b0d-e29f-4593-b605-084b3d71ed9d%7D)
1011
![Mozilla Add-on Rating](https://img.shields.io/amo/rating/%7Bf3924b0d-e29f-4593-b605-084b3d71ed9d%7D)
1112

12-
1313
<img width="1912" alt="image" src="https://user-images.githubusercontent.com/44864521/213549217-bed0071c-c5bc-4a12-944f-31ce15648ab7.png">
1414

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.
1616

1717
## Installing
1818

1919
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).
2020

21-
22-
## About this extension
21+
## About this extension
2322

2423
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.
2524

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:
3126

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
3230

33-
Pre-requisites:
31+
Pre-requisites:
3432

35-
* Must use either Firefox or Google Chrome web browsers.
33+
- Must use either Firefox or Google Chrome web browsers.
3634

37-
How to enable:
35+
How to enable:
3836

3937
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.
4038

4139
## Use with Self-Hosted and Dedicated Cloud Versions of Codecov
40+
4241
You can use this extension against installations of Codecov and GitHub that are:
4342

44-
* Self-hosted
45-
* Part of Codecov's Dedicated Cloud plan
43+
- Self-hosted
44+
- Part of Codecov's Dedicated Cloud plan
4645

4746
In order to do so you must provide:
4847

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
5255

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.
5461

5562
## Running Locally
63+
5664
```sh
5765
$ web-ext run -s dist -t chromium
5866
```
5967

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. ✨
6169

6270
As of today, GitHub will show you the old UI if not logged in (running in a temporary profile using web-ext).
6371

@@ -87,9 +95,8 @@ $ cp dist/manifest.firefox.json dist/manifest.json
8795

8896
## About Codecov
8997

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.
9399

94100
## License
101+
95102
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-browser-extension?ref=badge_large)

0 commit comments

Comments
 (0)