feat: hierarchical test organization with [Tag] attribute#4950
feat: hierarchical test organization with [Tag] attribute#4950thomhurst wants to merge 2 commits into
Conversation
Code ReviewOverall the implementation is clean and follows established patterns (mirroring 1. Public API Snapshot Tests Not UpdatedThe PR adds multiple public members to
The
The four Fix: Run the snapshot update (accept 2.
|
Add support for hierarchical test categorization via a new [Tag]
attribute that uses dot-notation (e.g., [Tag("integration.database.postgres")]).
Filtering for a parent tag matches all children: --tag integration
matches integration, integration.database, integration.database.postgres.
- TagAttribute in TUnit.Core with ITestDiscoveryEventReceiver
- Tags collection on TestDetails/ITestDetailsMetadata
- HasTag with hierarchical matching on TestDescriptor
- --tag CLI option via TagCommandProvider
- Tag-based filtering in TestFilterService (works alongside tree filters)
- Tag properties in test node PropertyBag for platform reporting
1a0f5e0 to
6d576d0
Compare
Closes #4892. Adds [Tag] with dot-notation matching and --tag filter.