mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
added overload with same signatire as "int main(int argc, char**argv)"
This commit is contained in:
parent
d5e6fe15a8
commit
f8e366b19b
2 changed files with 7 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue