Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
4e2e227f58 |
2 changed files with 2 additions and 13 deletions
|
@ -31,18 +31,6 @@ pytest:
|
|||
script:
|
||||
- pip install hypothesis pytest pytest-cov
|
||||
- make check
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
junit: report.xml
|
||||
|
||||
test_coverage:
|
||||
stage: test
|
||||
script:
|
||||
- pip install hypothesis pytest pytest-cov
|
||||
- coverage run -m pytest
|
||||
- coverage report
|
||||
- coverage xml
|
||||
coverage: '/TOTAL.*\s([.\d]+)%/'
|
||||
artifacts:
|
||||
when: always
|
||||
|
@ -51,3 +39,4 @@ test_coverage:
|
|||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
check:
|
||||
pytest -vvv --log-level debug --cov --cov-report=term-missing --junitxml=report.xml
|
||||
pytest -vvv --log-level debug --cov --cov-report=term-missing --cov-report=xml:coverage.xml --junitxml=report.xml
|
||||
|
||||
lint: black flake8 mypy
|
||||
|
||||
|
|
Loading…
Reference in a new issue