mirror of https://github.com/caronc/apprise
Speed up test suite by invoking tests in parallel, using `pytest-xdist` (#690)
parent
47c2000a7e
commit
00f6626ba6
|
@ -1,6 +1,7 @@
|
||||||
[run]
|
[run]
|
||||||
disable_warnings = no-data-collected
|
data_file = .coverage-reports/.coverage
|
||||||
branch = True
|
branch = True
|
||||||
|
parallel = True
|
||||||
source =
|
source =
|
||||||
apprise
|
apprise
|
||||||
|
|
||||||
|
|
|
@ -2,5 +2,6 @@ coverage
|
||||||
flake8
|
flake8
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
|
pytest-xdist
|
||||||
tox
|
tox
|
||||||
babel
|
babel
|
||||||
|
|
|
@ -16,7 +16,7 @@ builtins = _
|
||||||
test=pytest
|
test=pytest
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
addopts = --verbose -ra
|
addopts = --verbosity=3 -ra
|
||||||
python_files = test/test_*.py
|
python_files = test/test_*.py
|
||||||
norecursedirs=test/helpers
|
norecursedirs=test/helpers
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
|
|
23
tox.ini
23
tox.ini
|
@ -12,7 +12,7 @@ deps=
|
||||||
-r{toxinidir}/dev-requirements.txt
|
-r{toxinidir}/dev-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
|
@ -23,7 +23,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:py37]
|
[testenv:py37]
|
||||||
|
@ -34,7 +34,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
|
|
||||||
[testenv:py38]
|
[testenv:py38]
|
||||||
deps=
|
deps=
|
||||||
|
@ -44,7 +44,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:py39]
|
[testenv:py39]
|
||||||
|
@ -55,7 +55,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:py310]
|
[testenv:py310]
|
||||||
|
@ -66,7 +66,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ deps=
|
||||||
-r{toxinidir}/dev-requirements.txt
|
-r{toxinidir}/dev-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:pypy36]
|
[testenv:pypy36]
|
||||||
|
@ -88,7 +88,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:pypy37]
|
[testenv:pypy37]
|
||||||
|
@ -100,7 +100,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
|
|
||||||
[testenv:pypy38]
|
[testenv:pypy38]
|
||||||
deps=
|
deps=
|
||||||
|
@ -111,7 +111,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:pypy39]
|
[testenv:pypy39]
|
||||||
|
@ -123,7 +123,7 @@ deps=
|
||||||
-r{toxinidir}/all-plugin-requirements.txt
|
-r{toxinidir}/all-plugin-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
python setup.py compile_catalog
|
python setup.py compile_catalog
|
||||||
coverage run --parallel -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
|
|
||||||
[testenv:coverage-report]
|
[testenv:coverage-report]
|
||||||
|
@ -131,4 +131,5 @@ deps = coverage
|
||||||
skip_install = true
|
skip_install = true
|
||||||
commands=
|
commands=
|
||||||
coverage combine
|
coverage combine
|
||||||
|
coverage xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
Loading…
Reference in New Issue