|
|
@@ -9,8 +9,8 @@
|
|
|
envlist = {py3.10,pypy}-{aws,azure,gcp,openstack,mock},lint
|
|
|
|
|
|
[testenv]
|
|
|
-commands = # see setup.cfg for options sent to nosetests and coverage
|
|
|
- nosetests -v --nocapture --nologcapture --logging-format='%(asctime)s [%(levelname)s] %(name)s: %(message)s' {posargs}
|
|
|
+commands = # see setup.cfg for options sent to pytest and coverage
|
|
|
+ coverage run --source=cloudbridge -m pytest -n 5 tests/ -v {posargs}
|
|
|
setenv =
|
|
|
# Fix for moto import issue: https://github.com/travis-ci/travis-ci/issues/7940
|
|
|
BOTO_CONFIG=/dev/null
|
|
|
@@ -30,8 +30,9 @@ passenv =
|
|
|
mock: CB_IMAGE_AWS,CB_VM_TYPE_AWS,CB_PLACEMENT_AWS,AWS_ACCESS_KEY,AWS_SECRET_KEY
|
|
|
deps =
|
|
|
-rrequirements.txt
|
|
|
- coverage<5
|
|
|
+ coverage
|
|
|
+ pytest-xdist
|
|
|
|
|
|
[testenv:lint]
|
|
|
commands = flake8 cloudbridge tests setup.py
|
|
|
-deps = flake8
|
|
|
+deps = flake8
|