- Pytest Tutorial
- Pytest - Home
- Pytest - Introduction
- Pytest - Environment Setup
- Identifying Test files and Functions
- Pytest - Starting With Basic Test
- Pytest - File Execution
- Execute a Subset of Test Suite
- Substring Matching of Test Names
- Pytest - Grouping the Tests
- Pytest - Fixtures
- Pytest - Conftest.py
- Pytest - Parameterizing Tests
- Pytest - Xfail/Skip Tests
- Stop Test Suite after N Test Failures
- Pytest - Run Tests in Parallel
- Test Execution Results in XML
- Pytest - Summary
- Pytest - Conclusion
- Pytest useful Resources
- Pytest - Quick Guide
- Pytest - Useful Resources
- Pytest - Discussion
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 are installing.
To install the latest version of pytest, execute the following command −
pip install pytest
Confirm the installation using the following command to display the help section of pytest.
pytest -h
Advertisements