Allow passing additional pytest args to scripts/test (#1710)

This commit is contained in:
Florimond Manca 2021-06-24 12:15:59 +02:00 committed by GitHub
parent 6b93787514
commit 3d192aed45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -71,10 +71,12 @@ $ scripts/test
The test suite spawns testing servers on ports **8000** and **8001**.
Make sure these are not in use, so the tests can run properly.
You can run a single test script like this:
Any additional arguments will be passed to `pytest`. See the [pytest documentation](https://docs.pytest.org/en/latest/how-to/usage.html) for more information.
For example, to run a single test script:
```shell
$ scripts/test -- tests/test_multipart.py
$ scripts/test tests/test_multipart.py
```
To run the code auto-formatting:

View File

@ -11,7 +11,7 @@ if [ -z $GITHUB_ACTIONS ]; then
scripts/check
fi
${PREFIX}coverage run -m pytest
${PREFIX}coverage run -m pytest "$@"
if [ -z $GITHUB_ACTIONS ]; then
scripts/coverage