mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
run tests with pytest
This commit is contained in:
parent
ec3c3dd89e
commit
fdf14b4ab3
@ -19,7 +19,7 @@ env:
|
||||
|
||||
before_install:
|
||||
- pip install --upgrade pip
|
||||
- pip install --upgrade setuptools wheel nose coverage codecov
|
||||
- pip install --upgrade setuptools wheel pytest pytest-cov coverage codecov
|
||||
- nvm install 6.9.2
|
||||
- nvm use 6.9.2
|
||||
- node --version
|
||||
@ -65,7 +65,7 @@ script:
|
||||
true
|
||||
fi
|
||||
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
|
||||
- 'if [[ $GROUP == python ]]; then nosetests -v --exclude-dir notebook/tests/selenium --with-coverage --cover-package=notebook notebook; fi'
|
||||
- 'if [[ $GROUP == python ]]; then py.test -v --ignore notebook/tests/selenium --cov=notebook notebook; fi'
|
||||
- 'if [[ $GROUP == selenium ]]; then py.test -sv notebook/tests/selenium; fi'
|
||||
- |
|
||||
if [[ $GROUP == docs ]]; then
|
||||
|
@ -21,7 +21,7 @@ install:
|
||||
- cmd: conda config --set show_channel_urls true
|
||||
- cmd: conda config --add channels conda-forge
|
||||
#- cmd: conda update --yes --quiet conda
|
||||
- cmd: conda install -y python=%CONDA_PY_SPEC% pyzmq tornado jupyter_client nbformat ipykernel pip nodejs nose
|
||||
- cmd: conda install -y python=%CONDA_PY_SPEC% pyzmq tornado jupyter_client nbformat ipykernel pip nodejs pytest
|
||||
# not using `conda install -y` on nbconvent package because there is
|
||||
# currently a bug with the version that the anaconda installs, so we will just install it with pip
|
||||
- cmd: pip install nbconvert
|
||||
@ -29,4 +29,4 @@ install:
|
||||
- cmd: pip install .[test]
|
||||
|
||||
test_script:
|
||||
- nosetests -v notebook --exclude-dir notebook\tests\selenium
|
||||
- pytest -v notebook --exclude-dir notebook\tests\selenium
|
||||
|
4
setup.py
4
setup.py
@ -115,8 +115,8 @@ for more information.
|
||||
'prometheus_client'
|
||||
],
|
||||
extras_require = {
|
||||
'test': ['nose', 'coverage', 'requests', 'nose_warnings_filters',
|
||||
'nbval', 'nose-exclude', 'selenium', 'pytest', 'pytest-cov'],
|
||||
'test': ['pytest', 'coverage', 'requests',
|
||||
'nbval', 'selenium', 'pytest', 'pytest-cov'],
|
||||
'docs': ['sphinx', 'nbsphinx', 'sphinxcontrib_github_alt', 'sphinx_rtd_theme'],
|
||||
'test:sys_platform != "win32"': ['requests-unixsocket'],
|
||||
'json-logging': ['json-logging']
|
||||
|
Loading…
Reference in New Issue
Block a user