From 82aa8c4e22dd337333a310f5f48f5324c456022b Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sun, 25 Mar 2018 22:45:37 +0200 Subject: [PATCH] Compute coverage on API tests --- .gitlab-ci.yml | 2 +- api/requirements/test.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38492f614..01717831a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,7 @@ test_api: - pip install -r requirements/local.txt - pip install -r requirements/test.txt script: - - pytest + - pytest --cov=funkwhale_api tests/ tags: - docker diff --git a/api/requirements/test.txt b/api/requirements/test.txt index c12b44827..b909a51ab 100644 --- a/api/requirements/test.txt +++ b/api/requirements/test.txt @@ -9,3 +9,4 @@ git+https://github.com/pytest-dev/pytest-django.git@d3d9bb3ef6f0377cb5356eb36899 pytest-mock pytest-sugar pytest-xdist +pytest-cov