mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update development_testing.markdown
This commit is contained in:
parent
8eff1f37f0
commit
fa4c431c06
@ -28,13 +28,13 @@ You can pass arguments via Tox to py.test to be able to run single test suites o
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Stop after the first test fails
|
# 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
|
# 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
|
# 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
|
# 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 %}
|
### {% linkable_title Testing outside of Tox %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user