Commit 4f9eab9c authored by Sergio Alonso's avatar Sergio Alonso

gitlab-ci: run tests with code coverage

parent ace5167d
......@@ -29,7 +29,8 @@ job_tests:
- python3 manage.py migrate --settings=educational_heritage.settings.local
- python3 manage.py loaddata Item --settings=educational_heritage.settings.local
- python3 manage.py runserver --settings=educational_heritage.settings.local &
- python3 manage.py test -k --settings=educational_heritage.settings.local
- coverage run manage.py test -k -v 2 --settings=educational_heritage.settings.local
- coverage report -m --skip-covered
only:
- master
......
......@@ -4,4 +4,5 @@
/usr/bin/python3 ./manage.py migrate --settings=educational_heritage.settings.local
/usr/bin/python3 ./manage.py loaddata Item --settings=educational_heritage.settings.local
/usr/bin/python3 ./manage.py runserver --settings=educational_heritage.settings.local &
/usr/bin/python3 ./manage.py test --settings=educational_heritage.settings.local
coverage run ./manage.py test -k -v 2 --settings=educational_heritage.settings.local
coverage report -m --skip-covered
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