Implement a "make check" target that will run the unit tests

This commit is contained in:
Jeroen Dekkers
2012-10-19 18:46:46 +02:00
parent b744710ee3
commit a632c82b59
5 changed files with 19 additions and 5 deletions
+3 -1
View File
@@ -31,6 +31,8 @@
#import "SOGoTestRunner.h"
#define EXPECTED_FAILURES 3
@implementation SOGoTestRunner
+ (SOGoTestRunner *) testRunner
@@ -89,7 +91,7 @@
[allTestClasses autorelease];
[self autorelease];
return rc;
return (failuresCount + errorsCount != EXPECTED_FAILURES);
}
- (void) incrementTestCounter: (SOGoTestFailureCode) failureCode