Prerequisite for pytest
Create virtual environment
Activate virtual environment
Install pytest in Windows environment
Write first test case
Run pytest tests
The Python pytest library is among the top 100 Python libraries, with more than 28,306,860 downloads. This article will show you everything you need to get this installed in your Python environment.
The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
pytest requires: Python 3.7+ or PyPy3
python -m venv pytestdemo
pytestdemo\scripts\activate
pip install pytest