#3174
Extend section filtering to support wildcards (Issue #3072)
Description
What:
We have extended section path filtering to support wildcards and backslash escaping:
- Glob Pattern Matching: Reimplemented
WildcardPatternto use a recursiveglob_matchhelper instead of a simple start/end wildcard check. This enables full glob matching (including mid-string wildcards likeA*Band multiple wildcards). - Backslash Escaping: Added support for escaping backslashes and wildcards using
\. For example,A\*matchesA*exactly, andA\\*matchesA\at the start. - PathFilter Integration: Pre-compiles section filters into
WildcardPatternobjects inside thePathFilterstructure at CLI parsing time. - Tracker Integration: Replaced exact string comparisons in
SectionTracker(isFilteredImplandisComplete) withwildcardPattern->matches(...). - Unit Tests: Added unit tests verifying wildcard filtering and escaping behaviors directly in
PartTracker.tests.cpp.
Why:
This enables flexible execution of nested test subsets. Users can now run a specific group of sections matching a naming convention (e.g., executing paragraphs or requirement groups) without having to specify each section individually, resolving a long-standing feature request.