From f5fd0c9eae3d673209528db37e5848cb38a568e6 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 9 Mar 2017 18:13:11 +0530 Subject: Add coverage: - Add coverage prerequisite to requirements - Add coverage config file - Add coverage command to travis --- .travis.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f1c4dab..4777f11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,12 @@ install: - pip install -r requirements/requirements-common.txt - python setup.py develop -# command to run tests +# command to run tests and coverage script: - - python manage.py test -v 2 yaksh - - python manage.py test -v 2 yaksh.live_server_tests.load_test + - coverage erase + - coverage run -p manage.py test -v 2 yaksh + - coverage run -p manage.py test -v 2 yaksh.live_server_tests.load_test + +after_success: + - coverage combine + - coverage report -- cgit