diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5e108dc57..c480ecf0a 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 747a588b9..60e376214 100755 --- a/setup.py +++ b/setup.py @@ -117,7 +117,7 @@ for more information. ':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'], }, python_requires = '>=3.4',