English 中文(简体)
Execute a Subset of Test Suite
  • 时间:2024-09-17

Execute a Subset of Test Suite


Previous Page Next Page  

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