Differences From Artifact [36e6efa285]:
- File
src/test/OTAppDelegate.m
— part of check-in
[10f006be37]
at
2024-02-05 20:42:09
on branch objfwtest
— Add ObjFWTest
So far, it only discovers all tests and runs them and doesn't do much
else. (user: js, size: 2268) [annotate] [blame] [check-ins using]
To Artifact [d77755a8a2]:
- File src/test/OTAppDelegate.m — part of check-in [5cd1585ae1] at 2024-02-06 23:01:44 on branch objfwtest — ObjFWTest: Add OTAssert() (user: js, size: 2674) [annotate] [blame] [check-ins using]
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | + + | #import "OTAppDelegate.h" #import "OFSet.h" #import "OFValue.h" #import "OTTestCase.h" #import "OTAssertionFailedException.h" OF_APPLICATION_DELEGATE(OTAppDelegate) @implementation OTAppDelegate - (OFSet OF_GENERIC(Class) *)testClasses { Class *classes = objc_copyClassList(NULL); OFMutableSet *testClasses; |
︙ | |||
84 85 86 87 88 89 90 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | + - - - + + + + + + + + + + + + + + + + + + | for (Class class in testClasses) { for (OFValue *test in [self testsInClass: class]) { void *pool = objc_autoreleasePoolPush(); OTTestCase *instance = [[[class alloc] init] autorelease]; @try { |