catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Slightly tweaked docs on supplying your own main
- Commit
54e6f9d4714fe8dd06b02a7f49bf178415523405- Author
- Phil Nash ·
- Parents
ad7445d33c56
Changes
docs/own-main.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/own-main.md b/docs/own-main.md index 08692940..3feda563 100644 --- a/docs/own-main.md +++ b/docs/own-main.md @@ -41,6 +41,7 @@ int main( int argc, char* const argv[] ) Catch::Session session; // There must be exactly once instance // writing to session.configData() here sets defaults + // this is the preferred way to set them int returnCode = session.applyCommandLine( argc, argv ); if( returnCode != 0 ) // Indicates a command line error @@ -48,6 +49,7 @@ int main( int argc, char* const argv[] ) // writing to session.configData() or session.Config() here // overrides command line args + // only do this if you know you need to return session.run(); }