Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
commit-id:df74d8eb
  • Loading branch information
ksew1 committed Dec 12, 2024
1 parent 1c7ce06 commit 1d5ed97
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

#### Added

- `cairo-coverage clean` command to remove all generated files. This is useful as by default, the coverage report is
appended to the existing one. So if you want to start fresh, you can use this command.

## [0.3.0] - 2024-12-09

#### Added
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ curl -L https://raw.githubusercontent.com/software-mansion/cairo-coverage/main/s

## Usage

### Help

To see the available commands and options, run:

```shell
cairo-coverage --help
```

Using the `--help` flag with any command will display additional information about that specific command.

```shell
cairo-coverage clean --help
```

### `.cairo-coverage-ignore` File

You can create a `.cairo-coverage-ignore` file in the root of your project to specify the files or directories that you
Expand Down Expand Up @@ -64,11 +78,10 @@ To generate a coverage report, run the `cairo-coverage` command with one or more
arguments specify the paths to the JSON files containing the trace data to be used for generating the coverage report.

```shell
cairo-coverage path/to/trace/1.json path/to/trace/2.json path/to/trace/3.json
cairo-coverage run path/to/trace/1.json path/to/trace/2.json path/to/trace/3.json
```

Optionally, you can specify an output file path using the `--output-path <OUTPUT_PATH>` option. If not provided, the
output file will default to `coverage.lcov`.
Due to historical reasons, the `run` command is optional and can be omitted. But we plan to remove it in the future.

The generated output file is in the `lcov` format. For your convenience, you can find an explanation along with a simple
example of the `lcov` format [here](./lcov.md).
Expand Down

0 comments on commit 1d5ed97

Please sign in to comment.