mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Updated test counts
This commit is contained in:
parent
4e58d7c6be
commit
3c08431c92
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user