Some clean-up

This commit is contained in:
Phil Nash 2011-02-08 08:42:05 +00:00
parent 9d1259273f
commit 58e9a8bafd
10 changed files with 90 additions and 13 deletions

View file

@ -19,6 +19,9 @@
#include "catch_test_case_info.hpp"
#include "catch_capture.hpp"
#include <set>
#include <string>
namespace Catch
{
class TestSpec
@ -194,12 +197,14 @@ namespace Catch
///////////////////////////////////////////////////////////////////////////
virtual void runAll
()
(
bool runHiddenTests = false
)
{
std::vector<TestCaseInfo> allTests = Hub::getTestCaseRegistry().getAllTests();
for( std::size_t i=0; i < allTests.size(); ++i )
{
if( !allTests[i].isHidden() )
if( runHiddenTests || !allTests[i].isHidden() )
runTest( allTests[i] );
}
}