Trgan Test
TrganTest represents an individual test case within the trgan report. It can be created independently or nested inside a TrganContainer, depending on the desired report structure.
Standalone Tests
When modular grouping is not required, you can create a test directly on the report. This is ideal for flat reports that follow a scenario/test basis rather than a feature/test class hierarchy.
1 |
|
categories: string[]
to tag the test with labels.
1 2 |
|
Container-Based Tests
For structured reports that follow a Feature → Scenarios hierarchy (e.g., BDD or class-based TDD), use TrganContainer.CreateTest
to nest the test inside a logical grouping.
1 2 3 |
|
Note
When creating a TrganTest via TrganContainer, category tags cannot be passed directly to the test. Instead, they are inherited and validated through the associated TrganContainer.
Example:
1 2 3 4 5 |
|