olamy commented on code in PR #3332: URL: https://github.com/apache/maven-surefire/pull/3332#discussion_r3004633710
########## maven-surefire-plugin/src/site/markdown/architecture.md: ########## @@ -443,16 +439,16 @@ The `maven-surefire-report-plugin` reads the XML files (via `surefire-report-par ## Group / Category Filtering -The `surefire-grouper` module provides test filtering by JUnit 4 categories or TestNG groups. +Since 3.6.0, test filtering by groups, categories, or tags is handled via the JUnit Platform's native **tag expression** syntax. ### How it works 1. Users configure `<groups>` and `<excludedGroups>` in the plugin configuration -2. For **JUnit 4.7+**: the `surefire-junit47` provider uses `GroupMatcherCategoryFilter` to filter tests by `@Category` annotations -3. For **TestNG**: groups are passed directly to TestNG's native group filtering -4. For **JUnit Platform**: tag filter expressions are passed to the JUnit Platform Launcher +2. For **JUnit 4**: `@Category` annotations are mapped to JUnit Platform tags via the Vintage Engine +3. For **TestNG**: groups are mapped to JUnit Platform tags via the TestNG Engine +4. For **JUnit 5**: `@Tag` annotations are used natively Review Comment: fixed bee6ce4c07709a5a86c585f7653f49c82878bd98 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
