diff --git a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst index dac9cc9b..fda87973 100644 --- a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst +++ b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst @@ -83,7 +83,7 @@ Tips To run a subset of tests:: - tox -e envname -- py.test -k test_myfeature + tox -e envname -- pytest -k test_myfeature To run all the test environments in *parallel* (you need to ``pip install detox``):: diff --git a/{{cookiecutter.repo_name}}/ci/templates/tox.ini b/{{cookiecutter.repo_name}}/ci/templates/tox.ini index 45605b85..15855cad 100644 --- a/{{cookiecutter.repo_name}}/ci/templates/tox.ini +++ b/{{cookiecutter.repo_name}}/ci/templates/tox.ini @@ -29,7 +29,7 @@ commands = python setup.py clean --all build_ext --force --inplace {%- endif %} {%- if cookiecutter.test_runner == "pytest" %} - {posargs:py.test -vv --ignore=src} + {posargs:pytest -vv --ignore=src} {%- else %} {posargs:nosetests -v tests} {%- endif %} @@ -162,7 +162,7 @@ commands = python setup.py clean --all build_ext --force --inplace {%- endif %} {%- if cookiecutter.test_runner == "pytest" %} - {posargs:py.test --cov --cov-report=term-missing -vv} + {posargs:pytest --cov --cov-report=term-missing -vv} {%- else %} {posargs:nosetests --with-coverage --cover-package={{ cookiecutter.package_name }}} {%- endif %} diff --git a/{{cookiecutter.repo_name}}/tox.ini b/{{cookiecutter.repo_name}}/tox.ini index 1f2b7422..696412d2 100644 --- a/{{cookiecutter.repo_name}}/tox.ini +++ b/{{cookiecutter.repo_name}}/tox.ini @@ -58,10 +58,10 @@ commands = {%- endif %} {%- if cookiecutter.test_runner == "pytest" %} {%- if cookiecutter.test_matrix_separate_coverage == 'yes' %} - nocov: {posargs:py.test -vv --ignore=src} - cover: {posargs:py.test --cov --cov-report=term-missing -vv} + nocov: {posargs:pytest -vv --ignore=src} + cover: {posargs:pytest --cov --cov-report=term-missing -vv} {%- else %} - {posargs:py.test --cov --cov-report=term-missing -vv tests} + {posargs:pytest --cov --cov-report=term-missing -vv tests} {%- endif %} {%- else %} {%- if cookiecutter.test_matrix_separate_coverage == 'yes' %}