Skip to content
Snippets Groups Projects
Commit a1a922d5 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

use pytest-xdist and pytest-cov for parallel testing

parent 8b760440
Branches
Tags
1 merge request!16Parallel testing
...@@ -8,17 +8,15 @@ max-line-length = 120 ...@@ -8,17 +8,15 @@ max-line-length = 120
[testenv] [testenv]
passenv = TEST_OPSDB_HOSTNAME,TEST_OPSDB_DBNAME,TEST_OPSDB_USERNAME,TEST_OPSDB_PASSWORD passenv = TEST_OPSDB_HOSTNAME,TEST_OPSDB_DBNAME,TEST_OPSDB_USERNAME,TEST_OPSDB_PASSWORD
deps = deps =
coverage pytest-xdist
pytest-cov
flake8 flake8
-r requirements.txt -r requirements.txt
#install_command = pip install --pre --extra-index-url http://pip.geant.net/ --trusted-host pip.geant.net {opts} {packages} #install_command = pip install --pre --extra-index-url http://pip.geant.net/ --trusted-host pip.geant.net {opts} {packages}
commands = commands =
coverage erase coverage erase
coverage run --source inventory_provider -m pytest {posargs} pytest -n auto --cov inventory_provider -p no:checkdocs
coverage xml
coverage html
coverage report --fail-under 80
flake8 flake8
sphinx-build -M html docs/source docs/build sphinx-build -M html docs/source docs/build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment