Commit 12e563d7 authored by Nico Alt's avatar Nico Alt
Browse files

Get test coverage

parent 64223656
Pipeline #3510 passed with stage
in 4 minutes and 24 seconds
builddir builddir
.coverage
.flatpak-builder .flatpak-builder
__pycache__ __pycache__
...@@ -14,6 +14,7 @@ test:pylint: ...@@ -14,6 +14,7 @@ test:pylint:
test:pytest: test:pytest:
image: debian:stretch image: debian:stretch
coverage: '/TOTAL.*\s+(\d+%)$/'
script: script:
- apt update && apt install --no-install-recommends -y gir1.2-gtk-3.0 python3-gi python3-pip python3-setuptools - apt update && apt install --no-install-recommends -y gir1.2-gtk-3.0 python3-gi python3-pip python3-setuptools
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
......
...@@ -2,4 +2,5 @@ ...@@ -2,4 +2,5 @@
pycodestyle>=2.5.0 pycodestyle>=2.5.0
pylint>=2.3.1 pylint>=2.3.1
pytest>=4.6.2 pytest>=4.6.2
pytest-cov>=2.7.1
requests_mock>=1.6.0 requests_mock>=1.6.0
#!/usr/bin/env bash #!/usr/bin/env bash
PYTHONPATH=src pytest tests/ PYTHONPATH=src pytest --cov=src tests/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment