Pytest environment setup

Pytest Environment Setup

In this chapter, we will learn how to install pytest.

To start the installation, execute the following command –

pip install pytest == 2.9.1

We can install any version of pytest. Here, 2.9.1 is the version we want to install.

To install the latest version of pytest, execute the following command –

pip install pytest

Confirm the installation with the following command, which displays the help section for pytest.

pytest -h

Leave a Reply

Your email address will not be published. Required fields are marked *