Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Add account token steps to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Mar 1, 2018
1 parent 6b7e13c commit 693d8e7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -154,6 +154,26 @@ npm run test-with-coverage

## Extras

### Account Token

To send coverage using your account/api token you can follow the following steps.

* Add test with coverage step to your package.json:

```json
"scripts": {
"test-with-coverage": "cat ./coverage/lcov.info | codacy-coverage --accountToken <account-token> --username <username> --projectName <project-name>"
}
```

* Run your tests with:

```sh
npm run test-with-coverage
```

As an alternative you can also export `CODACY_ACCOUNT_TOKEN` instead of passing `--accountToken <account-token>` to the CLI.

### Force custom language (e.g. Typescript, Coffeescript, C, ...)

* Pass an extra parameter to the codacy-coverage reporter `--language typescript` or `--language coffeescript`.
Expand Down

0 comments on commit 693d8e7

Please sign in to comment.