Fix test tag parsing to split [.foo] into [.][foo]
This commit is contained in:
parent
54089c4c8c
commit
b77cec05c0
8 changed files with 76 additions and 41 deletions
|
@ -75,6 +75,12 @@ namespace Catch {
|
|||
else if( prop == TestCaseInfo::None )
|
||||
enforceNotReservedTag( tag, _lineInfo );
|
||||
|
||||
// Merged hide tags like `[.approvals]` should be added as
|
||||
// `[.][approvals]`. The `[.]` is added at later point, so
|
||||
// we only strip the prefix
|
||||
if (startsWith(tag, '.') && tag.size() > 1) {
|
||||
tag.erase(0, 1);
|
||||
}
|
||||
tags.push_back( tag );
|
||||
tag.clear();
|
||||
inTag = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue