Skip to content
Snippets Groups Projects
Commit efcba8f1 authored by Sean Dague's avatar Sean Dague
Browse files

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.
parent 35601311
No related branches found
No related tags found
No related merge requests found
flake8>=2.5.1 flake8>=2.5.1
pylint>=1.5.3 pylint>=1.5.3
coveralls>=1.1 coveralls>=1.1
pytest>=2.6.4 pytest>=2.8.0
pytest-cov>=2.2.0 pytest-cov>=2.2.0
betamax>=0.5.1 pytest-timeout>=1.0.0
\ No newline at end of file betamax>=0.5.1
...@@ -8,10 +8,10 @@ cd "$(dirname "$0")/.." ...@@ -8,10 +8,10 @@ cd "$(dirname "$0")/.."
echo "Running tests..." echo "Running tests..."
if [ "$1" = "coverage" ]; then if [ "$1" = "coverage" ]; then
py.test --cov --cov-report= py.test -v --timeout=30 --cov --cov-report=
TEST_STATUS=$? TEST_STATUS=$?
else else
py.test py.test -v --timeout=30
TEST_STATUS=$? TEST_STATUS=$?
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment