Pytest Tutorial
Selected Reading
- Pytest - Discussion
- Pytest - Useful Resources
- Pytest - Quick Guide
- Pytest - Conclusion
- Pytest - Summary
- Test Execution Results in XML
- Pytest - Run Tests in Parallel
- Stop Test Suite after N Test Failures
- Pytest - Xfail/Skip Tests
- Pytest - Parameterizing Tests
- Pytest - Conftest.py
- Pytest - Fixtures
- Pytest - Grouping the Tests
- Substring Matching of Test Names
- Execute a Subset of Test Suite
- Pytest - File Execution
- Pytest - Starting With Basic Test
- Identifying Test files and Functions
- Pytest - Environment Setup
- Pytest - Introduction
- Pytest - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Execute a Subset of Test Suite
Execute a Subset of Test Suite
In a real scenario, we will have multiple test files and each file will have a number of tests. Tests will cover various modules and functionapties. Suppose, we want to run only a specific set of tests; how do we go about it?
Pytest provides two ways to run the subset of the test suite.
Select tests to run based on substring matching of test names.
Select tests groups to run based on the markers appped.
We will explain these two with examples in subsequent chapters.
Advertisements