Skip to content

Commit

Permalink
pragmatismatic: run flaky tests three times to see if we can get more…
Browse files Browse the repository at this point in the history
… "green" CI runs this way ...

thanks to @The-Compiler also modernize plugin usage
  • Loading branch information
hpk42 committed Sep 10, 2019
1 parent e9da21a commit ffc525a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Afterwards ``which python`` tells you that it comes out of the "venv"
directory that contains all python install artifacts. Let's first
install test tools::

pip install pytest pytest-timeout requests
pip install pytest pytest-timeout pytest-rerunfailures requests

then cargo-build and install the deltachat bindings::

Expand Down
10 changes: 7 additions & 3 deletions python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ passenv =
DCC_PY_LIVECONFIG
deps =
pytest
pytest-faulthandler
pytest-rerunfailures
pytest-timeout
pytest-xdist
auditwheel
pdbpp
requests

Expand Down Expand Up @@ -51,11 +54,12 @@ commands =


[pytest]
addopts = -v -rs
addopts = -v -rs --reruns 3 --reruns-delay 2
python_files = tests/test_*.py
norecursedirs = .tox
xfail_strict=true
timeout = 60
timeout = 60
timeout_method = thread

[flake8]
max-line-length = 120

0 comments on commit ffc525a

Please sign in to comment.