File tree Expand file tree Collapse file tree 2 files changed +22
-37
lines changed
Expand file tree Collapse file tree 2 files changed +22
-37
lines changed Original file line number Diff line number Diff line change 1- * .egg-info
2- * .pyc
1+ # Distribution / packaging
2+ build /
3+ dist /
4+ * .egg-info /
5+
6+ # Unit test / coverage reports
37__pycache__
8+ htmlcov /
9+ .tox /
410.coverage
511.coverage. *
612durations /*
713coverage * .xml
8- dist
9- htmlcov
10- test
14+ qcfg.json
1115
1216# IDEs
1317.vscode /
2327# Mac personalization files
2428* .DS_Store
2529
26- # Tox envs
27- .tox
28-
29- # Backup files and folders
30- * .bkp
31- * .bkp. *
32- * bkp *
33-
34- # Build output
35- /build /lib /
36-
3730# Generated by setuptools_scm
3831/fms_mo /_version.py
3932
40- # Generated by tests
41- qcfg.json
42-
4333# Generated by spelling check
4434dictionary.dic
4535
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ basepython = python3.11
1919[testenv:unit]
2020basepython = {[testenv:py3]basepython}
2121
22+ [testenv:unitcov]
23+ description = unit test and code coverage
24+ basepython = {[testenv:py3]basepython}
25+ deps =
26+ pytest
27+ pytest-cov
28+ pytest-html
29+ commands =
30+ {basepython} -W error::UserWarning -m pytest --cov =fms_mo --cov-report term --cov-report =html:coverage-{env_name} --cov-report =xml:coverage-{env_name}.xml --html =durations/{env_name}.html {posargs:tests -m " not (examples or slow)" }
31+
2232[testenv:lint]
2333description = lint with pylint
2434basepython = {[testenv:py3]basepython}
@@ -68,23 +78,8 @@ commands =
6878 {envpython} -m pyspelling --config {toxinidir}/.spellcheck.yml --spellchecker aspell
6979allowlist_externals = sh
7080
71- [testenv:coverage]
72- description = report unit test coverage
73- deps =
74- coverage
75- pytest
76- genbadge[coverage]
77- commands =
78- coverage run \
79- --omit =*/_version.py \
80- --source =fms_mo \
81- --module pytest tests/
82- coverage report -m
83- coverage xml
84- genbadge coverage -s -i coverage.xml
85-
8681[gh]
8782python =
88- 3.11 = 3.11
89- 3.10 = 3.10
90- 3.9 = 3.9
83+ 3.11 = 3.11-{unitcov}
84+ 3.10 = 3.10-{unitcov}
85+ 3.9 = 3.9-{unitcov}
You can’t perform that action at this time.
0 commit comments