diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2022-11-22 11:26:55 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2022-11-25 16:38:59 +0000 |
commit | 5568f9f000d673ac53e710dcc8991fec6e8a5488 (patch) | |
tree | 6d7750de7a4e4d8c8828a3873569f6f29d704b01 /tox.ini | |
parent | 1e2ec6a5068300d39a2ec5672f626729e3171f7f (diff) | |
download | mlia-5568f9f000d673ac53e710dcc8991fec6e8a5488.tar.gz |
MLIA-676 Migrate e2e tests to tox
- Add new tox environments 'e2e' and 'e2e_setup'
- Move the extra 'dev' requirements to the tox environments
Change-Id: I7db80f48a7a4ef81f931c0ef307d9bcf5906af19
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -11,12 +11,31 @@ deps = commands = pytest {posargs:tests/} +[testenv:{e2e,e2e_setup}] +description = Run the end-to-end tests. +# Re-use the same env for both e2e and e2e_setup +envdir={toxworkdir}/e2e +deps = + {[testenv:test]deps} + rst2pdf +setenv = + PYTHONUNBUFFERED=1 + COLUMNS=120 + MLIA_E2E_CONFIG_FILE={posargs:e2e_config/e2e_tests_config.json} + LD_LIBRARY_PATH=:/opt/VHT +passenv = + ARMLMD_LICENSE_FILE +commands = + e2e_setup: {posargs} + e2e: pytest --collect-only -m "e2e" "tests_e2e" + e2e: pytest -s -v --capture=tee-sys --durations=0 --durations-min=5 --tb=long --junit-xml=report/report.xml -m "e2e" "tests_e2e" + + [testenv:coverage] description = Run the code coverage of the unit tests. deps = {[testenv:test]deps} pytest-cov==4.0.0 - commands = pytest --cov=mlia --cov-report term-missing --cov-fail-under=95 tests/ @@ -24,8 +43,11 @@ commands = description = Run and setup the pre-commit hooks. # Re-use the same env for both lint and lint_setup envdir={toxworkdir}/lint -extras = - dev +deps = + {[testenv:test]deps} + mypy==0.982 + pylint==2.15.5 + pre-commit # Pass the following environment variables: # - HOME: Workaround for an issue with markdownlint in a docker environment # - SKIP: Allows skipping of pre-commit hooks, e.g. "SKIP=reuse tox -e lint" |