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
Updated test counts
- Commit
3c08431c9289339e07fb09f5bc9d3c2e36691223- Author
- Phil Nash ·
- Parents
4e58d7c6be75
Changes
Test/TestMain.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp index aee3cb71..da22e917 100644 --- a/Test/TestMain.cpp +++ b/Test/TestMain.cpp @@ -10,9 +10,15 @@ * */ -#include "../catch_with_main.hpp" +//#include "../catch_with_main.hpp" #include "../internal/catch_self_test.hpp" +#include "catch_runner.hpp" +int main (int argc, char * const argv[]) +{ + return Catch::Main( argc, argv ); +} + TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" ) { using namespace Catch; @@ -44,7 +50,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" "Number of 'succeeding' tests is fixed" ) { runner.runMatching( "./succeeding/*" ); - CHECK( runner.getSuccessCount() == 290 ); + CHECK( runner.getSuccessCount() == 218 ); CHECK( runner.getFailureCount() == 0 ); } @@ -53,7 +59,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" { runner.runMatching( "./failing/*" ); CHECK( runner.getSuccessCount() == 0 ); - CHECK( runner.getFailureCount() == 127 ); + CHECK( runner.getFailureCount() == 55 ); } } }