Applied changes coming from v2/PR#184.

This commit is contained in:
Ludovic Marcotte
2016-01-18 09:26:07 -05:00
parent 985db9465c
commit b3bc6bb7dc
18 changed files with 439 additions and 210 deletions
+14 -3
View File
@@ -35,20 +35,31 @@ typedef enum {
SOGoTestFailureError = 2,
} SOGoTestFailureCode;
typedef enum {
SOGoTestTextOutputFormat = 0,
SOGoTestJUnitOutputFormat
} SOGoTestOutputFormat;
@interface SOGoTestRunner : NSObject
{
NSMutableArray *messages;
/* An array of arrays whose components are the method name and the
failure message if any */
NSMutableArray *performedTests;
int testCount;
int failuresCount;
int errorsCount;
BOOL hasFailed;
SOGoTestOutputFormat reportFormat;
}
+ (SOGoTestRunner *) testRunner;
+ (SOGoTestRunner *) testRunnerWithFormat: (SOGoTestOutputFormat) reportFormat;
- (void) setReportFormat: (SOGoTestOutputFormat) format;
- (int) run;
- (void) incrementTestCounter: (SOGoTestFailureCode) failureCode;
- (void) incrementTestCounter: (SOGoTestFailureCode) failureCode
afterMethod: (NSString *) methodName;
- (void) reportException: (NSException *) exception
method: (NSString *) methodName
withCode: (SOGoTestFailureCode) failureCode;