Add timeout option back to ini and remove command line option

This commit is contained in:
Kenneth Lyons 2019-07-01 09:21:40 -07:00
parent df0467961e
commit 2a0f866f7c
4 changed files with 7 additions and 3 deletions

View File

@ -144,7 +144,7 @@ script:
# Run unit tests
- start_test "unit tests";
PYTHONPATH=. pytest --cov pyqtgraph -sv -o faulthandler_timeout=15;
PYTHONPATH=. pytest --cov pyqtgraph -sv;
check_output "unit tests";
- echo "test script finished. Current directory:"
- pwd

View File

@ -47,6 +47,10 @@ Please use the following guidelines when preparing changes:
* pytest-xdist
* Optional: pytest-xvfb
If you have pytest < 5, you may also want to install the pytest-faulthandler
plugin to output extra debugging information in case of test failures. This
isn't necessary with pytest 5+ as the plugin was merged into core pytest.
### Tox
As PyQtGraph supports a wide array of Qt-bindings, and python versions, we make use of `tox` to test against most of the configurations in our test matrix. As some of the qt-bindings are only installable via `conda`, `conda` needs to be in your `PATH`, and we utilize the `tox-conda` plugin.

View File

@ -174,8 +174,7 @@ 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 \
-o faulthandler_timeout=15
-n 1 --cov pyqtgraph --cov-report=xml --cov-report=html
displayName: 'Unit tests'
env:
AZURE: 1

View File

@ -4,6 +4,7 @@ xvfb_height = 1080
# use this due to some issues with ndarray reshape errors on CI systems
xvfb_colordepth = 24
xvfb_args=-ac +extension GLX +render
faulthandler_timeout = 15
filterwarnings =
# comfortable skipping these warnings runtime warnings