Browse Source

update dependancies, generate junit result, generate coverage xml

master
killruana 2 years ago
parent
commit
9177d07094
3 changed files with 29 additions and 3 deletions
  1. +3
    -0
      .gitignore
  2. +2
    -3
      setup.py
  3. +24
    -0
      tox.ini

+ 3
- 0
.gitignore View File

@ -10,5 +10,8 @@ __pycache__/
/htmlcov/
/.coverage
# Ignore tox stuff
/.tox/
# Ignore VSCode stuff
/.vscode/

+ 2
- 3
setup.py View File

@ -53,10 +53,9 @@ setuptools.setup(
package_dir={"": os.path.join(BASE_DIR, "src")},
packages=setuptools.find_packages(os.path.join(BASE_DIR, "src")),
# Entry points
entry_points={
},
entry_points={},
# Requirements
python_requires="~=3.7",
python_requires="~=3.5",
install_requires=["Jinja2"],
# Other stuff
classifiers=[


+ 24
- 0
tox.ini View File

@ -0,0 +1,24 @@
[tox]
envlist = clean,py35,py36,py37,py38,report
[testenv]
deps =
pytest
pytest-cov
commands = pytest --cov=kfpga --cov-append --cov-report=term-missing --junitxml=reports/junit-{envname}.xml
depends =
{py35,py36,py37,py38}: clean
report: py35,py36,py37,py38
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html -d reports/htmlcov
coverage xml -o reports/coverage.xml
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

Loading…
Cancel
Save