First cut of new filtering mechanism

This commit is contained in:
Phil Nash
2012-08-23 20:08:50 +01:00
parent b354da9ab9
commit 56d5c42912
14 changed files with 1535 additions and 1365 deletions

View File

@@ -8,6 +8,7 @@
#ifndef TWOBLUECUBES_CATCH_RUNNERCONFIG_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_RUNNERCONFIG_HPP_INCLUDED
#include "catch_test_spec.h"
#include "catch_interfaces_reporter.h"
#include "catch_context.h"
@@ -29,7 +30,9 @@ namespace Catch {
Reports = 1,
Tests = 2,
All = 3,
TestNames = 6,
WhatMask = 0xf,
AsText = 0x10,
@@ -50,7 +53,7 @@ namespace Catch {
std::string reporter;
std::string outputFilename;
List::What listSpec;
std::vector<std::string> testSpecs;
std::vector<TestCaseFilters> filters;
bool shouldDebugBreak;
std::string stream;
Include::WhichResults includeWhichResults;
@@ -87,14 +90,6 @@ namespace Catch {
m_data.outputFilename = filename;
}
bool testsSpecified() const {
return !m_data.testSpecs.empty();
}
const std::vector<std::string>& getTestSpecs() const {
return m_data.testSpecs;
}
List::What getListSpec( void ) const {
return m_data.listSpec;
}