add pytest-timeout to test runs
This adds a default 30 second timeout on every test method so that deadlocks or broken threads are move obvious in travis. It also passes -v by default to make things a little more verbose on where things fail when they are failing.
This commit is contained in:
parent
356013118d
commit
efcba8f1ca
2 changed files with 5 additions and 4 deletions
|
@ -8,10 +8,10 @@ cd "$(dirname "$0")/.."
|
|||
echo "Running tests..."
|
||||
|
||||
if [ "$1" = "coverage" ]; then
|
||||
py.test --cov --cov-report=
|
||||
py.test -v --timeout=30 --cov --cov-report=
|
||||
TEST_STATUS=$?
|
||||
else
|
||||
py.test
|
||||
py.test -v --timeout=30
|
||||
TEST_STATUS=$?
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue