added overload with same signatire as "int main(int argc, char**argv)"

This commit is contained in:
Gabriel Schlozer 2016-09-12 09:43:06 +02:00
parent d5e6fe15a8
commit f8e366b19b
2 changed files with 7 additions and 1 deletions

View file

@ -29,6 +29,11 @@ namespace UnitTest {
return runner.RunTestsIf(Test::GetTestList(), 0, predicate, 0);
}
int RunTestsCmd(int argc, char**argv)
{
return RunTestsCmd(argc, argv, true);
}
TestRunner::TestRunner(TestReporter& reporter)
: m_reporter(&reporter)
, m_result(new TestResults(&reporter))

View file

@ -27,7 +27,8 @@ namespace UnitTest {
* Explicit: myTests.exe --suite MySuite1 MyOtherSuite --test MySpecialTest MyOtherTest
* Implicit: myTests.exe MySpecialTest MyOtherTest MySuite1
*/
UNITTEST_LINKAGE int RunTestsCmd(int argc, char**argv, bool allowImplicitArgs = true);
UNITTEST_LINKAGE int RunTestsCmd(int argc, char**argv, bool allowImplicitArgs);
UNITTEST_LINKAGE int RunTestsCmd(int argc, char**argv);
UNITTEST_LINKAGE int RunAllTests();