From 5c0eff4a6bfd93bef0a8093b68cb07c17085781e Mon Sep 17 00:00:00 2001 From: Kenzo-Hugo Hillion <kenzo-hugo.hillion1@pasteur.fr> Date: Wed, 19 Jun 2019 11:26:21 +0200 Subject: [PATCH] add scripts in coverage --- .gitlab-ci.yml | 4 ++-- backend/requirements_dev.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5b66cbe..2664f9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,5 +30,5 @@ test-backend: DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci" script: - flake8 --max-line-length 120 - - coverage run --source='.' scripts/manage.py test -v 2 metagenedb/tests - - coverage report + - pytest --cov . 2>&1 pytest_tmp.out + - pytest --cov scripts/ --cov-append diff --git a/backend/requirements_dev.txt b/backend/requirements_dev.txt index 5e56a93..dcd9565 100644 --- a/backend/requirements_dev.txt +++ b/backend/requirements_dev.txt @@ -20,6 +20,7 @@ pyflakes==2.1.1 pyparsing==2.4.0 pytest==4.6.3 pytest-cov==2.7.1 +pytest-django==3.5.0 pytz==2019.1 six==1.12.0 sqlparse==0.3.0 -- GitLab