Pytest Installation: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Then install <code>pytest</code> with that <code>pip</code>: | |||
<syntaxhighlight lang='bash'> | |||
< | pip install -U pytest | ||
</syntaxhighlight> | |||
</ | |||
Revision as of 01:25, 9 June 2022
Internal
Overview
pytest
is installed in a virtual environment and then used from that virtual environment.
For your project, configure direnv
to set PATH to give priority to your virtual environment bin
directory. In .envrc
:
PATH_add "./src/main/python/venv/bin"
Then install pytest
with that pip
:
pip install -U pytest