Refactored internal interfaces to use Totals instead of success/ fail

This commit is contained in:
Phil Nash 2012-02-23 18:51:21 +00:00
parent 8d93949b19
commit 9bbaeba3ae
7 changed files with 43 additions and 45 deletions

View file

@ -18,8 +18,8 @@ namespace Catch
///////////////////////////////////////////////////////////////////////////
std::size_t EmbeddedRunner::runMatching
(
const std::string& rawTestSpec
)
const std::string& rawTestSpec
)
{
std::ostringstream oss;
Config config;
@ -32,8 +32,7 @@ namespace Catch
{
Runner runner( config );
result = runner.runMatching( rawTestSpec );
m_successes = runner.getSuccessCount();
m_failures = runner.getFailureCount();
m_totals = runner.getTotals();
}
m_output = oss.str();
return result;