Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from jacebrowning/4.x-docs
Update docs for 4.x release
- Loading branch information
Showing
6 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
# Metrics Reset | ||
# Advanced Usage | ||
|
||
The client can also be used to view and reset coverage metrics. | ||
|
||
## Viewing Reports | ||
|
||
To update the overall coverage metric and view the local coverage report: | ||
|
||
```text | ||
$ coveragespace | ||
``` | ||
|
||
or to simply view the current report: | ||
|
||
```text | ||
$ coveragespace view | ||
``` | ||
|
||
## Resetting Metrics | ||
|
||
If code coverage metrics have decreased, but you would like to silence the warning and reset metrics to the next received value: | ||
|
||
```sh | ||
$ coveragespace <owner/repo> --reset | ||
```text | ||
$ coveragespace reset | ||
``` | ||
|
||
# Verbosity | ||
## Increasing Verbosity | ||
|
||
To always display the coverage results, use the `--verbose` option: | ||
|
||
```sh | ||
$ coveragespace <owner/repo> <metric> --verbose | ||
```text | ||
$ coveragespace set <metric> --verbose | ||
``` | ||
|
||
# Exit Codes | ||
## Exit Codes | ||
|
||
To return a non-zero exit code when coverage decreases, use the `--exit-code` option: | ||
|
||
```sh | ||
$ coveragespace <owner/repo> <metric> --exit-code | ||
```text | ||
$ coveragespace set <metric> --exit-code | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# Supported Formats | ||
|
||
The client currently supports the following coverage formats: | ||
The client extracts project metadata and coverage information from the project directory. | ||
|
||
## Source Code Repositories | ||
|
||
It currently supports the following repository formats: | ||
|
||
- [Git](https://git-scm.com/) | ||
|
||
## Coverage Data Formats | ||
|
||
It currently supports the following coverage formats: | ||
|
||
- [coverage.py](https://coverage.readthedocs.org/) | ||
|
||
# Additional Formats | ||
## Additional Formats | ||
|
||
Support for additional coverage formats is greatly appreciated. Please follow the [contributor instructions](https://github.com/jacebrowning/coverage-space-cli/blob/main/CONTRIBUTING.md) to add support for a new format. | ||
Support for additional formats is greatly appreciated! Please follow the [contributor instructions](https://github.com/jacebrowning/coverage-space-cli/blob/main/CONTRIBUTING.md) to add support for a new repository or coverage format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters