Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florimond Manca · committed by GitHub · parent 6b93787 · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:docs/contributing.md+4 added-2 removed
69 unmodified lines
70!!! warning71 The test suite spawns testing servers on ports **8000** and **8001**.72 Make sure these are not in use, so the tests can run properly.7374You can run a single test script like this:74Any additional arguments will be passed to `pytest`. See the [pytest documentation](https://docs.pytest.org/en/latest/how-to/usage.html) for more information.7576For example, to run a single test script:7778```shell77$ scripts/test -- tests/test_multipart.py79$ scripts/test tests/test_multipart.py80```8182To run the code auto-formatting:83
154 unmodified lines
modified:scripts/test+1 added-1 removed
9 unmodified lines
10if [ -z $GITHUB_ACTIONS ]; then11 scripts/check12fi1314${PREFIX}coverage run -m pytest14${PREFIX}coverage run -m pytest "$@"1516if [ -z $GITHUB_ACTIONS ]; then17 scripts/coverage18fi