Commit 8b43342f authored by André's avatar André
Browse files

CI: Add test coverage

parent 408cb93c
Pipeline #6863 passed with stages
in 7 minutes and 46 seconds
......@@ -8,14 +8,23 @@ stages:
stage: test
- python3 -m unittest discover -v
- rm -rf civenv-nbxmpp
- virtualenv -p python3 --system-site-packages civenv-nbxmpp
- . ./civenv-nbxmpp/bin/activate
- pip3 install -I pylint==2.4.4
- pip3 install -I coverage
- pip3 install -I idna
- pip3 install -I precis-i18n
- python3 -m pylint nbxmpp --disable=C0103,C0201,C0301,C0326,C0330,W0201,W0212,W0221,W0231,W0233,W0621,W0622,R0201,E1101,E1135
- coverage run --source=nbxmpp -m unittest discover -v
- coverage report -mi
- coverage xml -i
- deactivate
- rm -rf civenv-nbxmpp
coverage: "/TOTAL.+ ([0-9]{1,3}%)/"
cobertura: coverage.xml
# C0103 invalid-name
# C0201 consider-iterating-dictionary
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