Update development_testing.markdown
This commit is contained in:
parent
8eff1f37f0
commit
fa4c431c06
1 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ You can pass arguments via Tox to py.test to be able to run single test suites o
|
|||
|
||||
```bash
|
||||
# Stop after the first test fails
|
||||
$ tox -e py36 tests/test_core.py -x
|
||||
$ tox -e py36 -- tests/test_core.py -x
|
||||
# Run test with specified name
|
||||
$ tox -e py36 tests/test_core.py -k test_split_entity_id
|
||||
$ tox -e py36 -- tests/test_core.py -k test_split_entity_id
|
||||
# Fail a test after it runs for 2 seconds
|
||||
$ tox -e py36 tests/test_core.py --timeout 2
|
||||
$ tox -e py36 -- tests/test_core.py --timeout 2
|
||||
# Show the 10 slowest tests
|
||||
$ tox -e py36 tests/test_core.py --duration=10
|
||||
$ tox -e py36 -- tests/test_core.py --duration=10
|
||||
```
|
||||
|
||||
### {% linkable_title Testing outside of Tox %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue