From 7eaf303124c033ee7f350961dec161cd8ed363a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 17 Feb 2017 11:24:57 +0100 Subject: [PATCH] Added coverage tests --- .gitlab-ci.yml | 4 ++-- test-requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f2dd37..baa51d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,8 +28,8 @@ stages: - source .venv/$PYTHON_VERSION/bin/activate - pip install --use-wheel -r requirements.txt - pip install --use-wheel -r test-requirements.txt - - python setup.py test - + - py.test --cov=senpy --cov-report term-missing + test-3.5: <<: *test_definition image: "python:3.5" diff --git a/test-requirements.txt b/test-requirements.txt index 625bed6..aa973f5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,3 @@ pytest mock +pytest-cov