diff --git a/.travis.yml b/.travis.yml index 6a4bea78a..c5df271a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,5 +62,5 @@ script: elif [[ "$TEST_MODE" == "PEP8" ]]; then PYTHONPATH=$PWD:$PYTHONPATH py.test --pep8 -m pep8 -n0; else - PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests; - fi \ No newline at end of file + PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests --cov=keras tests/ --cov-fail-under 78 --cov-report term-missing; + fi diff --git a/setup.py b/setup.py index 074dbf474..b245ee6c4 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ setup(name='Keras', 'visualize': ['pydot-ng'], 'tests': ['pytest', 'pytest-pep8', - 'pytest-xdist'], + 'pytest-xdist', + 'pytest-cov'], }, packages=find_packages())