Avoid adding a default test spec when none was provided

This commit is contained in:
Martin Hořeňovský
2019-04-09 11:50:59 +02:00
parent b9dd1936e5
commit e99f1efd28
3 changed files with 11 additions and 8 deletions

View File

@@ -16,10 +16,7 @@ namespace Catch {
m_stream( openStream() )
{
TestSpecParser parser(ITagAliasRegistry::get());
if (data.testsOrTags.empty()) {
parser.parse("~[.]"); // All not hidden tests
}
else {
if (!data.testsOrTags.empty()) {
m_hasTestFilters = true;
for( auto const& testOrTags : data.testsOrTags )
parser.parse( testOrTags );