Install pytest-faulthandler for py27 and add timeout
This commit is contained in:
parent
98e66a855e
commit
df0467961e
@ -64,6 +64,11 @@ install:
|
||||
- pip install pytest-xdist # multi-thread pytest
|
||||
- pip install pytest-cov # add coverage stats
|
||||
|
||||
# faulthandler support not built in to pytest for python 2.7
|
||||
- if [ "${PYTHON}" == "2.7" ]; then
|
||||
pip install pytest-faulthandler;
|
||||
fi;
|
||||
|
||||
# Debugging helpers
|
||||
- uname -a
|
||||
- cat /etc/issue
|
||||
@ -139,7 +144,7 @@ script:
|
||||
|
||||
# Run unit tests
|
||||
- start_test "unit tests";
|
||||
PYTHONPATH=. pytest --cov pyqtgraph -sv;
|
||||
PYTHONPATH=. pytest --cov pyqtgraph -sv -o faulthandler_timeout=15;
|
||||
check_output "unit tests";
|
||||
- echo "test script finished. Current directory:"
|
||||
- pwd
|
||||
|
@ -99,6 +99,10 @@ jobs:
|
||||
pip install $(qt.bindings) numpy scipy pyopengl pytest six coverage
|
||||
fi
|
||||
pip install pytest-xdist pytest-cov
|
||||
if [ $(python.version) == "2.7" ]
|
||||
then
|
||||
pip install pytest-faulthandler
|
||||
fi
|
||||
displayName: "Install Dependencies"
|
||||
|
||||
- bash: |
|
||||
@ -170,7 +174,8 @@ jobs:
|
||||
# echo "https://dev.azure.com/pyqtgraph/pyqtgraph/_apis/build/builds/$(Build.BuildId)/artifacts?artifactName=Screenshots&api-version=5.0"
|
||||
pytest . -sv \
|
||||
--junitxml=junit/test-results.xml \
|
||||
-n 1 --cov pyqtgraph --cov-report=xml --cov-report=html
|
||||
-n 1 --cov pyqtgraph --cov-report=xml --cov-report=html \
|
||||
-o faulthandler_timeout=15
|
||||
displayName: 'Unit tests'
|
||||
env:
|
||||
AZURE: 1
|
||||
|
Loading…
Reference in New Issue
Block a user