Add timeout option back to ini and remove command line option
This commit is contained in:
parent
df0467961e
commit
2a0f866f7c
@ -144,7 +144,7 @@ script:
|
|||||||
|
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
- start_test "unit tests";
|
- start_test "unit tests";
|
||||||
PYTHONPATH=. pytest --cov pyqtgraph -sv -o faulthandler_timeout=15;
|
PYTHONPATH=. pytest --cov pyqtgraph -sv;
|
||||||
check_output "unit tests";
|
check_output "unit tests";
|
||||||
- echo "test script finished. Current directory:"
|
- echo "test script finished. Current directory:"
|
||||||
- pwd
|
- pwd
|
||||||
|
@ -47,6 +47,10 @@ Please use the following guidelines when preparing changes:
|
|||||||
* pytest-xdist
|
* pytest-xdist
|
||||||
* Optional: pytest-xvfb
|
* 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
|
### 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.
|
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.
|
||||||
|
@ -174,8 +174,7 @@ jobs:
|
|||||||
# echo "https://dev.azure.com/pyqtgraph/pyqtgraph/_apis/build/builds/$(Build.BuildId)/artifacts?artifactName=Screenshots&api-version=5.0"
|
# echo "https://dev.azure.com/pyqtgraph/pyqtgraph/_apis/build/builds/$(Build.BuildId)/artifacts?artifactName=Screenshots&api-version=5.0"
|
||||||
pytest . -sv \
|
pytest . -sv \
|
||||||
--junitxml=junit/test-results.xml \
|
--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'
|
displayName: 'Unit tests'
|
||||||
env:
|
env:
|
||||||
AZURE: 1
|
AZURE: 1
|
||||||
|
@ -4,6 +4,7 @@ xvfb_height = 1080
|
|||||||
# use this due to some issues with ndarray reshape errors on CI systems
|
# use this due to some issues with ndarray reshape errors on CI systems
|
||||||
xvfb_colordepth = 24
|
xvfb_colordepth = 24
|
||||||
xvfb_args=-ac +extension GLX +render
|
xvfb_args=-ac +extension GLX +render
|
||||||
|
faulthandler_timeout = 15
|
||||||
|
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
# comfortable skipping these warnings runtime warnings
|
# comfortable skipping these warnings runtime warnings
|
||||||
|
Loading…
Reference in New Issue
Block a user