Skip to content

Commit

Permalink
docs: describe --include-target option in README
Browse files Browse the repository at this point in the history
  • Loading branch information
humblehacker committed Jul 2, 2022
1 parent 25d5e9f commit fd0b155
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ Before we can upload the data to Coveralls, we need to convert it to a format it
swift run xccov2lcov cov.json > lcov.info
```

**NOTE** By default, all targets will be included in the output. If you only want to include certain targets, add an `--include-target` option for each target you want to include:

```bash
swift run xccov2lcov cov.json \
--include-target SomeTarget \
--include-target AnotherTarget > lcov.info
```

### Uploading to Coveralls

Finally, uploading to Coveralls happens during the automated build via the already mentioned [Coveralls Github Action](https://github.com/marketplace/actions/coveralls-github-action) by adding the following to `.github/workflows/main.yml`:
Expand Down

0 comments on commit fd0b155

Please sign in to comment.