X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fosm-ng-ui%2Ftox.ini;h=73cbb28919819d65dc049e763963ea3737fa6ccf;hb=be1ab182ee509d5b458fcd1379a9101a7d2a09b1;hp=13c973586668ca0ef6f60097b07869e6be1d4332;hpb=06cacb28e8256c0d7c287516f7aaddb6e3fb6d21;p=osm%2Fdevops.git diff --git a/installers/charm/osm-ng-ui/tox.ini b/installers/charm/osm-ng-ui/tox.ini index 13c97358..73cbb289 100644 --- a/installers/charm/osm-ng-ui/tox.ini +++ b/installers/charm/osm-ng-ui/tox.ini @@ -21,13 +21,12 @@ [tox] skipsdist=True skip_missing_interpreters = True -envlist = lint, unit +envlist = lint, unit, integration [vars] -src_path = {toxinidir}/src/ -tst_path = {toxinidir}/tests/ -lib_path = {toxinidir}/lib/charms/osm_ng_ui -all_path = {[vars]src_path} {[vars]tst_path} +src_path = {toxinidir}/src +tst_path = {toxinidir}/tests +all_path = {[vars]src_path} {[vars]tst_path} [testenv] setenv = @@ -54,7 +53,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming @@ -62,8 +60,7 @@ deps = codespell commands = # uncomment the following line if this charm owns a lib - codespell {[vars]lib_path} - codespell {toxinidir}/. --skip {toxinidir}/.git --skip {toxinidir}/.tox \ + codespell {toxinidir} --skip {toxinidir}/.git --skip {toxinidir}/.tox \ --skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \ --skip {toxinidir}/.mypy_cache --skip {toxinidir}/icon.svg # pflake8 wrapper supports config from pyproject.toml @@ -79,17 +76,17 @@ deps = coverage[toml] -r{toxinidir}/requirements.txt commands = - coverage run --source={[vars]src_path},{[vars]lib_path} \ - -m pytest --ignore={[vars]tst_path}integration -v --tb native -s {posargs} + coverage run --source={[vars]src_path} \ + -m pytest {[vars]tst_path}/unit -v --tb native -s {posargs} coverage report coverage xml [testenv:integration] description = Run integration tests deps = + juju<3.0.0 pytest - juju pytest-operator -r{toxinidir}/requirements.txt commands = - pytest -v --tb native --ignore={[vars]tst_path}unit --log-cli-level=INFO -s {posargs} + pytest -v --tb native {[vars]tst_path}/integration --log-cli-level=INFO -s {posargs} --cloud microk8s