mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 00:47:56 +00:00
Some clean-up
This commit is contained in:
parent
9d1259273f
commit
58e9a8bafd
10 changed files with 90 additions and 13 deletions
|
@ -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] );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue