Stop tests after first error
Asked by
Konstantin Schubert
on 2017-11-13
Hi,
I'm trying to refactor some things but I am having a hard time debugging failing test casess.
is there a way to run the tests in a way so they stop running after the first error?
Also, how can configure tox so the stdout gets printed when a test fails?
Thank you for your help
Konstantin
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2017-11-13
- Last reply:
- 2017-11-14
You can't stop on first error, wish you could, but you can run individual tests or suites like so:
# this runs the pep8 test by itself
tox -r -e py27 -- -s testing.
# this runs the entire CodeTest suite
tox -r -e py27 -- -s testing.
Can you help with this problem?
Provide an answer of your own, or ask Konstantin Schubert for more information if necessary.
To post a message you must log in.