X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=7d421c54ba98dac0782901a9dbb9e0e197582bd3;hb=8043b5f5eb23e60267d7e0f2ed11c90941088e05;hp=e09164c9eeaec7ee29c5d19d22621479d5aace5d;hpb=6e325de83c8469a93500a8c0b8f4458158ed6905;p=sim%2Fa1-interface.git diff --git a/tox.ini b/tox.ini index e09164c..7d421c5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,6 @@ # ================================================================================== -# Copyright (c) 2020-2022 Nordix +# Copyright (c) 2020-2023 Nordix +# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,17 +17,18 @@ [tox] envlist = code,docs,docs-linkcheck -minversion = 2.0 +minversion = 4.0 skipsdist = true ; basic test and coverage jobs [testenv:code] -basepython = python3.8 +basepython = python3 deps= pytest coverage pytest-cov - connexion + connexion==2.14.2 + Flask==2.2.5 setenv = TESTS_BASE_PATH = {toxinidir}/near-rt-ric-simulator/tests @@ -37,36 +39,26 @@ commands = ; Note that the second pytest (additional pytest added in the future) uses the 'append' flag to combine the coverage data ; from the previous tests. The first pytest shall not have the 'append' since the it is supposed to erase previous coverage data ; from earlier tox run. - pytest --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 \ + pytest -o log_cli=true --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 \ {toxinidir}/near-rt-ric-simulator/tests/test_osc_2_1_0.py - pytest --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \ + pytest -o log_cli=true --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \ --cov-fail-under=70 {toxinidir}/near-rt-ric-simulator/tests/test_std_1_1_3.py - pytest --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \ + pytest -o log_cli=true --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \ --cov-fail-under=70 {toxinidir}/near-rt-ric-simulator/tests/test_std_2_0_0.py coverage xml -i # doc jobs [testenv:docs] -whitelist_externals = echo -basepython = python3.8 -deps = - sphinx - sphinx-rtd-theme - sphinxcontrib-httpdomain - sphinxcontrib-redoc - recommonmark - lfdocs-conf +allowlist_externals = echo +basepython = python3 +deps = -r{toxinidir}/docs/requirements-docs.txt commands = sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html echo "Generated docs available in {toxinidir}/docs/_build/html" [testenv:docs-linkcheck] skipsdist = true -basepython = python3.8 -deps = sphinx - sphinx-rtd-theme - sphinxcontrib-httpdomain - sphinxcontrib-redoc - recommonmark - lfdocs-conf -commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck +basepython = python3 +deps = -r{toxinidir}/docs/requirements-docs.txt +commands = + sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck