Skip to content

Commit

Permalink
Fix coverage flag for test command
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes M. Scheuermann <[email protected]>
  • Loading branch information
johscheuer authored and tsandall committed Sep 17, 2018
1 parent c81d653 commit 6a7c0b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/how-do-i-test-policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ If we run the coverage report on the original **example.rego** file without
that line 8 is not covered.

```bash
opa test --cover --format=json example.rego example_test.rego
opa test --coverage --format=json example.rego example_test.rego
```

```json
Expand Down Expand Up @@ -488,4 +488,4 @@ The order of the criteria on the command line determine their priority.
Another way to get the same output as above would be the following:
```bash
opa eval --data rbac.rego --profile-limit 5 --profile-sort num_eval --profile-sort num_redo --format=pretty 'data.rbac.allow'
```
```

0 comments on commit 6a7c0b3

Please sign in to comment.