Skip to main content

By Suite

This is perhaps the most common way to group test results, and it makes the most sense for projects using Jest.

Grouping by suite

The suite hierarchy consists of up to four levels: parent suite, suite, sub-suite and test case.

Glossary
Parent Suite
The highest level of the hierarchy used to group test results by package (e.g., client, server), test directory (e.g., e2e, unit, integration), or any other relevant criteria. It is not configured by default, but you can easily add it to your reports.
Suite
Serves as the primary grouping level, typically based on test file paths. However, you can choose alternative criteria such as feature or component directories (LoginScreen, ProfileScreen, core, utils), or top-level describe block names, if preferred.
Subsuite
Helpful when dealing with a large number of test cases within a single suite. By default, test cases are grouped per top-level describe block. However, if there are numerous nested describe blocks (or, vice versa โ€” lots of files and directories), you can look for alternative configurations.
Test Case
Represents the actual test. By default, it displays the test name, including the inner describe block names. You have the flexibility to choose a test name format that best suits your needs โ€“ see a few examples below in this article.

Below we'll explore a few examples of how to configure the grouping by suite.

Default presetโ€‹

By default, jest-allure2-reporter provides 3 levels of grouping: suite, sub-suite, and test case:

  1. The suite level is based on the test file path.
  2. The sub-suite level is based on the top-level describe block.
  3. The test case level is based on the test name (including the inner describe block names).

Default grouping

File-oriented exampleโ€‹

This example might be useful for projects with many test files and relatively few test cases per file.

File-oriented grouping

Test-oriented exampleโ€‹

This example should fit projects with a smaller number of test files and numerous test cases per file.

Test-oriented grouping