From 60fb1e6554775d1b22685f5b1eea04795c84a542 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 2 Sep 2016 16:12:43 -0400 Subject: [tests] add pep8 in main tox run from within the gitlab script add coverage reports too. (hereby we swear not to write stupid tests just because it feels good to have an increased coverage metric). - Resolves: #8416 --- .gitignore | 3 +++ .gitlab-ci.yml | 2 +- testing/tox.ini | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6c3e413e..1f278cbf 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ MANIFEST _trial_temp .DS_Store scripts/profiling/sync/profiles + +testing/htmlcov +testing/.coverage diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 820dbd2a..11c482b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,4 +3,4 @@ tests: services: - couchdb script: - - cd testing; tox -- --couch-url http://couchdb:5984 + - cd testing; tox -- --couch-url http://couchdb:5984 && tox -e pep8 diff --git a/testing/tox.ini b/testing/tox.ini index c1d7ddb7..fecd4c5b 100644 --- a/testing/tox.ini +++ b/testing/tox.ini @@ -2,9 +2,14 @@ envlist = py27 [testenv] -commands = py.test {posargs} +commands = py.test --cov-report=html \ + --cov-report=term \ + --cov=leap.soledad \ + {posargs} deps = + coverage pytest + pytest-cov pytest-twisted pytest-benchmark mock -- cgit v1.2.3