Skip to content

Commit

Permalink
Update test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Dec 26, 2022
1 parent 5149647 commit af9d7d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,20 @@ Before developing, always activate your virtual environment with `source venv/bi

## Run tests

Validate the data is correctly formatted.
Validate that the data is correctly formatted:

```
python3 -m script.intentfest validate
python3 -m script.intentfest validate --language nl
```

Run the tests. Specify a language with `--language` and specify a file with `-k`. Leave off both to run the full test suite.
Run the tests. This will parse the sentences and verifies them with the test sentences.

```
pytest tests --language nl -k fan_HassTurnOn
```

Leave off `--language` to test all languages. Leave off `-k` to test all files.

## Test parsing sentences

You can try parsing sentences for a specific language with:
Expand Down

0 comments on commit af9d7d4

Please sign in to comment.