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:
1 parent
356013118d
commit
efcba8f1ca
2 files changed
+5
-4
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user