Skip to content

Commit

Permalink
README fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert committed Jan 18, 2024
1 parent 2a71a3c commit 142bcd5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ what went wrong in your unit tests, resulting in a faster test iteration process

## Usage

Simply download the test assertions library and place it somewhere `opa test` checks for policy
and tests:

```shell
curl -O https://raw.githubusercontent.com/anderseknert/rego-test-assertions/main/test/assert.rego
```
Simply download the test assertions library
[policy file](https://raw.githubusercontent.com/anderseknert/rego-test-assertions/main/test/assert.rego)
and place it somewhere `opa test` checks for policy and tests:

Alternatively, use [ODM](https://github.com/johanfylling/opa-dependency-manager) to add the library to your project:

```shell
odm depend rego-test-assertions --no-namespace git+https://github.com/anderseknert/rego-test-assertions
odm depend rego-test-assertions --no-namespace \
git+https://github.com/anderseknert/rego-test-assertions
```

In order to use the test assertion functions, import the `test.assert` package:
Expand Down

0 comments on commit 142bcd5

Please sign in to comment.