# Test suite

> Test Suite: What It Is and How to Keep It Useful. Canonical page: <https://zapple.tech/glossary/test-suite/>

A test suite is a set of tests grouped to run together for one purpose, such as a quick build check or a full run before release. We sort suites by when they run and what a failure blocks. Our rule of thumb: a suite helps while it is fast enough to wait for, trusted and owned by someone.

## What kinds of test suite are there?

A suite is a group of tests that run as one job. The [ISTQB foundation syllabus](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf) says test cases can be organized into test procedures, "which are often assembled into test suites". Tools give you the grouping in different forms. In [TestNG](https://testng.org/), "a suite is represented by one XML file". [JUnit](https://docs.junit.org/6.1.3/overview.html) has a Suite Engine "for running a custom test suite". In [pytest](https://docs.pytest.org/en/stable/how-to/mark.html) you can mark tests and select them with the `-m` option. [Playwright](https://playwright.dev/docs/test-annotations) lets you tag tests and "only run tests that have a certain tag", and group tests into [projects](https://playwright.dev/docs/test-projects).

The names below are the labels we use. The runtimes and the blocking rules are our rule of thumb, not a standard.

| Suite | Runs when | How long it may take (our rule of thumb) | What a failure blocks |
|:--|:--|:--|:--|
| Smoke | On every build or deploy | Short enough to wait for, minutes | Promotion to the next stage. The ISTQB syllabus gives "all smoke tests have passed" as an example entry criterion |
| Sanity | After a small fix or change | Narrow and short | The retest of that area. This is our usage |
| Regression | On merge, or nightly on a large product | As long as the team will wait, then split | The merge or the release |
| Full release | Before a release | Can be long if it is spread over machines | The release |
| Nightly | Every night | The longest | Nothing at once, but someone triages the result the next morning |

Regression suites need special care. The ISTQB syllabus says they "are run many times and generally the number of regression test cases will increase with each iteration or release". In our judgement, a suite that only grows ends up slowing the changes that wait for it. For a plain-language view of one narrow kind, see our post on [automated sanity testing](/blog/types-of-automation-testing/importance-of-automated-sanity-testing/).

## How big should a suite be before it slows delivery, and what do you cut?

We would not give a number. Our rule of thumb: a suite is too big when people merge without waiting for it. Measure how long the slowest suite on the merge path takes, and compare it with how long your team will actually wait.

We cut in this order:

1. **Duplicates.** The same behavior checked at several levels of the stack is a candidate. Keep the cheapest check that would catch the fault.
2. **Tests nobody can explain.** If no one can say what a test protects, it earns no place on the merge path.
3. **Flaky tests.** [Playwright's report](https://playwright.dev/docs/test-retries) calls a test "flaky" when it "failed on the first run, but passed when retried". Retries are for that case, but they also hide it. Fix the test or move it out of the blocking suite, with an owner and a date.
4. **Slow checks.** Tag them and move them to the nightly run, using tags or projects.
5. **Serial execution.** Playwright's [sharding](https://playwright.dev/docs/test-sharding) runs tests "on multiple machines simultaneously", which shortens the wall-clock time without removing a test.

If you would rather hand the regression run to an outside team, see our [regression automation testing](/services/regression-automation-testing/) service.

## Who owns a test suite, and what does an unowned suite cost?

One named person or team should own each suite. They decide what goes in and what comes out, and what a red run means. Without that, the same things happen. Flaky tests stay in because the retry passes. Runs go unread because nobody is asked to answer for them. Then people stop trusting the result, and someone switches the check off.

Treat this as our judgement from practice, not a measured rate. A suite that blocks a merge is part of your [quality gate](/glossary/quality-gate/), so the owner of the gate and the owner of the suite should agree on what may block. The tooling that executes a suite is the [test harness](/glossary/test-harness/). For the upkeep side, our guide to a [test automation maintenance strategy](/blog/test-automation-frameworks/how-to-create-best-test-automation-maintenance-strategy/) is the place to start. If you are choosing a runner, see [unit testing tools compared](/blog/types-of-automation-testing/list-of-the-best-unit-automation-testing-tools/).

## What does Zapple.Tech do about it?

If you are not sure which of your suites earn their runtime, start with evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page.

Tell us about your suites in the form below.

## FAQ

### What is a test suite?

A test suite is a group of tests that run together for one purpose. The ISTQB foundation syllabus says test cases can be organized into test procedures, "which are often assembled into test suites". Smoke, regression and release suites are examples. We sort them by when they run and what a failure stops.

### What is the difference between a test suite and a test case?

A test case is one check, with its inputs, steps and expected result. A test suite is a collection of many such checks run as one job. A suite gives you one result for a purpose, such as whether a build is fit to promote, while a case tells you about one behavior.

### What is the difference between a test suite and a test plan?

A test plan records the test objectives and the approach chosen to meet them. A test suite is the executable set of tests. The plan is where you decide which suites you need. The suites are what actually run.

### How many tests should a regression suite have?

There is no number that fits every product. The ISTQB syllabus notes that regression suites tend to grow with each release. Our rule of thumb is to size it by criteria instead. It should run fast enough that people wait for it, cover the behavior that earns or loses you money, and contain no test that nobody can explain.

## Sources

- [ISTQB Certified Tester Foundation Level syllabus v4.0.1 (newest edition listed by ISTQB, dated 2024-09-15)](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf)
- [pytest documentation, How to mark test functions (current docs)](https://docs.pytest.org/en/stable/how-to/mark.html)
- [JUnit User Guide, Overview (6.1.3)](https://docs.junit.org/6.1.3/overview.html)
- [TestNG documentation (current)](https://testng.org/)
- [Playwright documentation, Annotations (tags) (current docs)](https://playwright.dev/docs/test-annotations)
- [Playwright documentation, Projects (current docs)](https://playwright.dev/docs/test-projects)
- [Playwright documentation, Sharding (current docs)](https://playwright.dev/docs/test-sharding)
- [Playwright documentation, Retries (current docs)](https://playwright.dev/docs/test-retries)
