mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
iPhone test runner adds OC_TEST_CASEs
This commit is contained in:
parent
84b394ec45
commit
5de646c728
@ -76,12 +76,13 @@
|
||||
|
||||
if( runner.getFailureCount() == 0 )
|
||||
{
|
||||
NSLog( @"%d", runner.getFailureCount() );
|
||||
NSLog( @"no failures" );
|
||||
if( runner.getSuccessCount() > 0 )
|
||||
appName.textColor = [[UIColor alloc] initWithRed:0.35 green:1 blue:0.35 alpha:1];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog( @"%d failures", runner.getFailureCount() );
|
||||
appName.textColor = [[UIColor alloc] initWithRed:1 green:0.35 blue:0.35 alpha:1];
|
||||
}
|
||||
}
|
||||
|
@ -7,11 +7,13 @@
|
||||
//
|
||||
|
||||
#import "internal/iTchRunnerAppDelegate.h"
|
||||
#include "catch_objc.hpp"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
{
|
||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
Catch::registerTestMethods();
|
||||
int retVal = UIApplicationMain(argc, argv, nil, @"iTchRunnerAppDelegate");
|
||||
[pool release];
|
||||
return retVal;
|
||||
|
Loading…
Reference in New Issue
Block a user