Restored quick way to add test programatically

This commit is contained in:
Phil Nash
2012-09-07 17:52:15 +01:00
parent f82d65fb41
commit c682a163b1
2 changed files with 22 additions and 1 deletions

View File

@@ -136,6 +136,12 @@ namespace Catch {
delete m_streambuf;
m_streambuf = newBuf;
}
void addTestSpec( const std::string& testSpec ) {
TestCaseFilters filters( testSpec );
filters.addFilter( TestCaseFilter( testSpec ) );
m_data.filters.push_back( filters );
}
virtual bool includeSuccessfulResults() const {
return m_data.includeWhichResults == Include::SuccessfulResults;