Skip to content

Commit 067527f

Browse files
authored
Merge pull request #298 from codacy/doc/fix-partial-reports
doc: Improve instructions on how to upload partial reports
2 parents 2c646ef + fe0df84 commit 067527f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/adding-coverage-to-your-repository.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,23 @@ See the sections below for more advanced functionality, or [check the troublesho
5555

5656
## Uploading multiple coverage reports for the same language {: id="multiple-reports"}
5757

58-
If your test suite is split in different modules or runs in parallel, you will need to upload multiple coverage reports for the same language.
58+
If your test suite is split on different modules or runs in parallel, you will need to upload multiple coverage reports for the same language:
5959

60-
To do this, upload each separate report with the flags `--partial`, `-l` (to specify the language), and `--coverge-reports` (to specify each partial report). Then, after all reports were uploaded, notify Codacy with the `final` command. For example:
60+
1. Upload each separate report with the following flags:
61+
62+
- `--partial`
63+
- `-l <language>`
64+
- `-r <partial report>`
65+
66+
2. After uploading all reports, notify Codacy with the `final` command.
67+
68+
For example:
6169

6270
```bash
6371
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
64-
-l Java -r report1.xml --partial
72+
--partial -l Java -r report1.xml
6573
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
66-
-l Java -r report2.xml --partial
74+
--partial -l Java -r report2.xml
6775
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
6876
```
6977

0 commit comments

Comments
 (0)