diff options
| author | dmsteck | 2020-01-31 20:44:06 +0000 |
|---|---|---|
| committer | GitHub | 2020-01-31 21:44:06 +0100 |
| commit | 481f54b357f033df0edc8bd457c175a2f2236d08 (patch) | |
| tree | 1c6206173cbab4457f79cd1cef9d73e0c715e419 /include | |
| parent | 2d172dc688ffab0867a94928159e93384475a870 (diff) | |
| download | catch3-481f54b357f033df0edc8bd457c175a2f2236d08.tar.gz | |
Make hidden tags behave identically (#1847)
Add both `[.]` and `[!hide]` tags when registering a hidden test case, as per documentation.
Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_test_case_info.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/catch_test_case_info.cpp b/include/internal/catch_test_case_info.cpp index 716c0b4b..cee972fa 100644 --- a/include/internal/catch_test_case_info.cpp +++ b/include/internal/catch_test_case_info.cpp @@ -89,7 +89,8 @@ namespace Catch { } } if( isHidden ) { - tags.emplace_back( "." ); + // Add all "hidden" tags to make them behave identically + tags.insert( tags.end(), { ".", "!hide" } ); } TestCaseInfo info( static_cast<std::string>(nameAndTags.name), _className, desc, tags, _lineInfo ); |