Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford authored Nov 7, 2023
1 parent 913d77c commit 64e7301
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,14 @@ lea run --only core.users --print | pbcopy
### `lea test`

```sh
lea test views
lea test
```

There are two types of tests:

- Singular tests -- these are queries which return failing rows. They are stored in a `tests` directory.
- Assertion tests -- these are comment annotations in the queries themselves:
- `@UNIQUE` -- checks that a column's values are unique.
- Singular tests these are queries which return failing rows. They are stored in a `tests` directory.
- Assertion tests these are comment annotations in the queries themselves:
- `@UNIQUE` checks that a column's values are unique.

As with the `run` command, there is a `--production` flag to disable the `<user>` suffix and thus test production data.

Expand All @@ -256,7 +256,7 @@ As with the `run` command, there is a `--production` flag to disable the `<user>
It is possible to generate documentation for the queries. This is done by inspecting the schema of the generated views and extracting the comments in the queries.

```sh
lea docs views
lea docs
--output-dir docs # where to put the generated files
```

Expand Down

0 comments on commit 64e7301

Please sign in to comment.