Cédric Krier pushed to branch branch/default at Tryton / Relatorio
Commits:
0c9d0520 by Cédric Krier at 2023-01-08T02:17:14+01:00
Add unit test reports
- - - - -
7acbb07f by Cédric Krier at 2023-01-08T04:24:19+01:00
Add coverage reports
- - - - -
2 changed files:
- .gitlab-ci.yml
- tox.ini
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -59,8 +59,15 @@
- .cache/pip
before_script:
- pip install tox
+ coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
+ artifacts:
+ reports:
+ junit: junit.xml
+ coverage_report:
+ coverage_format: cobertura
+ path: coverage.xml
test-tox-python:
extends: .test-tox
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:${PYTHON_VERSION}
script:
@@ -62,9 +69,9 @@
test-tox-python:
extends: .test-tox
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:${PYTHON_VERSION}
script:
- - tox -e "py${PYTHON_VERSION/./}"
+ - tox -e "py${PYTHON_VERSION/./}" -vv -- -v --output-file junit.xml
parallel:
matrix:
- PYTHON_VERSION: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
@@ -73,4 +80,4 @@
extends: .test-tox
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/pypy:3
script:
- - tox -e pypy3
+ - tox -e pypy3 -vv -- -v --output-file junit.xml
=====================================
tox.ini
=====================================
@@ -7,5 +7,6 @@
envlist = py35, py36, py37, py38, py39, py310, pypy3
[testenv]
+usedevelop = true
extras = fodt
commands =
@@ -10,6 +11,8 @@
extras = fodt
commands =
- coverage run -m unittest discover -s relatorio.tests
- coverage report --include=./relatorio/* --omit=*/tests/*
+ coverage run --omit=*/tests/* -m xmlrunner discover -s relatorio.tests
{posargs}
+commands_post =
+ coverage report
+ coverage xml
deps =
coverage
@@ -14,5 +17,6 @@
deps =
coverage
+ unittest-xml-reporting
pyyaml
pycha
passenv = *
View it on Heptapod:
https://foss.heptapod.net/tryton/relatorio/-/compare/c80de1085a708b2562644b2d9e03861e24396978...7acbb07f1dc118180b39af7e0b1a7afe9dbe5c37
--
View it on Heptapod:
https://foss.heptapod.net/tryton/relatorio/-/compare/c80de1085a708b2562644b2d9e03861e24396978...7acbb07f1dc118180b39af7e0b1a7afe9dbe5c37
You're receiving this email because of your account on foss.heptapod.net.