More match options for unit test selection string

This commit is contained in:
Vinnie Falco
2013-08-07 17:31:48 -07:00
parent f48ab1b286
commit b806ce2d9e
4 changed files with 217 additions and 99 deletions

View File

@@ -174,7 +174,7 @@ private:
bool const m_shouldLog;
};
static int runUnitTests (String const& whichTests, String const& format)
static int runUnitTests (String const& match, String const& format)
{
bool const shouldLog = format != "junit";
@@ -187,14 +187,7 @@ static int runUnitTests (String const& whichTests, String const& format)
RippleUnitTests tr (shouldLog);
if (whichTests == "")
{
tr.runAllTests ();
}
else
{
tr.runTestsByName (whichTests);
}
tr.runSelectedTests (match);
if (format == "junit")
{