Skip to content

Commit

Permalink
Merge pull request #300 from codacy/doc/improve-running-DOCS-207
Browse files Browse the repository at this point in the history
doc: Clarify how to run codacy-coverage-reporter
  • Loading branch information
prcr committed Mar 3, 2021
2 parents 067527f + 66c03e5 commit 0756fc6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/adding-coverage-to-your-repository.md
Expand Up @@ -39,15 +39,16 @@ After having coverage reports set up for your repository, you must use Codacy Co
export CODACY_API_BASE_URL=<your Codacy instance URL>
```

1. Run Codacy Coverage Reporter to upload the coverage results to Codacy.

The recommended way to do this is using a self-contained script that automatically downloads and runs the most recent version of Codacy Coverage Reporter:
1. Run Codacy Coverage Reporter **on the root of the locally checked out branch of your Git repository**, specifying the relative path to the coverage report to upload. For example:

```bash
bash <(curl -Ls https://coverage.codacy.com/get.sh) report
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r report.xml
```

See [alternative ways of running Codacy Coverage Reporter](alternative-ways-of-running-coverage-reporter.md) for other ways of running Codacy Coverage Reporter, such as by installing the binary manually or using a CircleCI Orb or GitHub Action.
!!! tip
The recommended self-contained script automatically downloads and runs the most recent version of Codacy Coverage Reporter.

See [alternative ways of running Codacy Coverage Reporter](alternative-ways-of-running-coverage-reporter.md) for other ways of running Codacy Coverage Reporter, such as by installing the binary manually or using a GitHub Action or CircleCI Orb.

1. Optionally, [add a Codacy badge](https://docs.codacy.com/repositories/badges/) to the README of your repository to display the current code coverage.

Expand Down

0 comments on commit 0756fc6

Please sign in to comment.