- Inherits From:
- SenTest
- Conforms To:
- NSCoding
- Declared In:
- SenTestSuite.h
SenTestSuite *suite= [SenTestSuite testSuiteWithName:@"My tests"];
[suite addTest: [MathTest testCaseWithSelector:@selector(testAdd)]];
[suite addTest: [MathTest testCaseWithSelector:@selector(testDivideByZero)]];
Alternatively, a TestSuite can extract the tests to be run automatically. To do so you pass the class of your TestCase class to the TestSuite constructor.
SenTestSuite *suite= [SenTestSuite testSuiteForTestCaseClass:[MathTest class]];
This creates a suite with all the methods starting with "test" that take no arguments.
And finally, a TestSuite of all the test cases found in the runtime can be created automatically:
SenTestSuite *suite = [SenTestSuite defaultTestSuite];
This creates a suite of suites with all the SenTestCase subclasses methods starting with "test" that take no arguments.
NSString *name;
NSMutableArray *tests;
name No description. tests No description.
- + defaultTestSuite
- + testSuiteForBundlePath:
- + testSuiteForTestCaseWithName:
- + testSuiteForTestCaseClass:
- + testSuiteWithName:
- - initWithName:
- - addTest:
- - addTests:
+ (id)defaultTestSuite
No method description.
+ (id)testSuiteForBundlePath:(NSString *)bundlePath
No method description.
+ (id)testSuiteForTestCaseClass:(Class)aClass
No method description.
+ (id)testSuiteForTestCaseWithName:(NSString *)aName
No method description.
+ (id)testSuiteWithName:(NSString *)aName
No method description.
- (void)addTest:(SenTest *)aTest
No method description.
- (void)addTests:(id <SenCollection>)aCollection
No method description.
- (id)initWithName:(NSString *)aName
No method description.