From 60f3d179ae9ff071a4979d2cf5d0051f603c4f62 Mon Sep 17 00:00:00 2001 From: Sep Date: Sat, 6 Aug 2016 20:51:49 -0700 Subject: [PATCH] coverage update --- .coveragerc | 2 -- .travis.yml | 4 +--- setup.py | 1 + tests.py | 10 ++++++++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.coveragerc b/.coveragerc index 580e6c71..7d6f2c29 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,5 +3,3 @@ omit = */python?.?/* */site-packages/nose/* *__init__* - numbers.py - decimal.py diff --git a/.travis.yml b/.travis.yml index abcafc8f..c3828320 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,10 +12,8 @@ sudo: false install: - pip install coveralls - - pip install nose -script: - - nosetests --with-coverage --cover-package=deepdiff +script: coverage run --source deepdiff setup.py test after_success: - coveralls diff --git a/setup.py b/setup.py index cf72544b..70bb72c1 100755 --- a/setup.py +++ b/setup.py @@ -22,6 +22,7 @@ license='MIT', packages=['deepdiff'], zip_safe=False, + test_suite="tests", long_description=long_description, classifiers=[ "Intended Audience :: Developers", diff --git a/tests.py b/tests.py index 0e5f6f3c..89d6640a 100755 --- a/tests.py +++ b/tests.py @@ -3,10 +3,16 @@ """ To run the test, run this in the root of repo: -python -m unittest discover + python -m unittest discover + +Or to run it with coverage: + coverage run --source deepdiff setup.py test + +Or using Nose: + nosetests --with-coverage --cover-package=deepdiff To run a specific test, run this from the root of repo: -python -m unittest tests.DeepDiffTestCase.test_list_of_sets_difference_ignore_order + python -m unittest tests.DeepDiffTestCase.test_list_of_sets_difference_ignore_order """ import unittest import datetime