22 lines
No EOL
549 B
INI
22 lines
No EOL
549 B
INI
# content of: tox.ini , put in same dir as setup.py
|
||
[tox]
|
||
skip_missing_interpreters = True
|
||
envlist = py310,py311
|
||
|
||
[testenv]
|
||
# install pytest in the virtualenv where commands will be executed
|
||
deps =
|
||
pytest
|
||
pytest-cov
|
||
commands =
|
||
# NOTE: you can run any command line tool here – not just tests
|
||
pytest -p no:warnings
|
||
|
||
[testenv:ci]
|
||
commands =
|
||
pytest —junitxml=results.xml \
|
||
—cov=your-module—cov-config=tox.ini —cov-report=xml
|
||
coverage2clover -i coverage.xml -o clover.xml
|
||
deps =
|
||
{[testenv]deps}
|
||
coverage2clover |