Document how to call the pytest command

This commit is contained in:
Valentin Lorentz 2021-02-21 18:06:46 +01:00 committed by Valentin Lorentz
parent 85d14f3e12
commit 9f68f12b3a

View File

@ -34,10 +34,18 @@ to your `PATH` if it is not.
export PATH=$HOME/.local/bin/:$HOME/go/bin/:$PATH
```
## Test selection
## Using pytest
irctest is invoked using the pytest test runner / CLI.
You can usually invoke it with `python3 -m pytest` command; which can often
be called by the `pytest` or `pytest-3` commands (if not, alias them if you
are planning to use them often).
The rest of this README assumes `pytest` works.
## Test selection
A major feature of pytest that irctest heavily relies on is test selection.
Using the `-k` option, you can select and deselect tests based on their names
and/or markers (listed in `pytest.ini`).