diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5e108dc57e..c480ecf0a7 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -136,11 +136,11 @@ Install dependencies:: To run the Python tests, use:: - nosetests + pytest If you want coverage statistics as well, you can run:: - nosetests --with-coverage --cover-package=notebook notebook + py.test --cov notebook -v --pyargs notebook JavaScript Tests ^^^^^^^^^^^^^^^^ diff --git a/setup.py b/setup.py index 6d60391db9..64115bafe5 100755 --- a/setup.py +++ b/setup.py @@ -97,7 +97,7 @@ ':python_version == "2.7"': ['ipaddress'], 'test:python_version == "2.7"': ['mock'], 'test': ['nose', 'coverage', 'requests', 'nose_warnings_filters', - 'nbval', 'nose-exclude', 'selenium'], + 'nbval', 'nose-exclude', 'selenium', 'pytest', 'pytest-cov'], 'test:sys_platform == "win32"': ['nose-exclude'], }, entry_points = {