Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: advanced.rst: Use "pytest" as the new recommended entrypoint for… #3759

Merged
merged 1 commit into from
May 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ and the corresponding Makefile::
pipenv install --dev

test:
pipenv run py.test tests
pipenv run pytest tests


Tox Automation Project
Expand All @@ -483,7 +483,7 @@ and external testing::
deps = pipenv
commands=
pipenv install --dev
pipenv run py.test tests
pipenv run pytest tests

[testenv:flake8-py3]
basepython = python3.4
Expand All @@ -492,7 +492,7 @@ and external testing::
pipenv run flake8 --version
pipenv run flake8 setup.py docs project test

Pipenv will automatically use the virtualenv provided by ``tox``. If ``pipenv install --dev`` installs e.g. ``pytest``, then installed command ``py.test`` will be present in given virtualenv and can be called directly by ``py.test tests`` instead of ``pipenv run py.test tests``.
Pipenv will automatically use the virtualenv provided by ``tox``. If ``pipenv install --dev`` installs e.g. ``pytest``, then installed command ``pytest`` will be present in given virtualenv and can be called directly by ``pytest tests`` instead of ``pipenv run pytest tests``.

You might also want to add ``--ignore-pipfile`` to ``pipenv install``, as to
not accidentally modify the lock-file on each test run. This causes Pipenv
Expand Down
1 change: 1 addition & 0 deletions news/3759.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated the documentation with the new ``pytest`` entrypoint.