Don't run tests starting with ./ by default. Changed all low-level self tests to be in ./

This commit is contained in:
Phil Nash
2011-01-14 08:47:43 +00:00
parent f36d777343
commit 684baf1053
9 changed files with 42 additions and 33 deletions

View File

@@ -113,7 +113,8 @@ namespace Catch
std::vector<TestCaseInfo> allTests = Hub::getTestCaseRegistry().getAllTests();
for( std::size_t i=0; i < allTests.size(); ++i )
{
runTest( allTests[i] );
if( !allTests[i].isHidden() )
runTest( allTests[i] );
}
}

View File

@@ -94,6 +94,14 @@ namespace Catch
{
return m_description;
}
///////////////////////////////////////////////////////////////////////
bool isHidden
()
const
{
return m_name.size() >= 2 && m_name[0] == '.' && m_name[1] == '/';
}
///////////////////////////////////////////////////////////////////////
void swap