Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (53 sloc) 1.849 kB
8b01cf2 @gabriel Importing
gabriel authored
1 //
2 // GHTestCase.m
d25dae0 @gabriel Refactoring
gabriel authored
3 // GHUnit
8b01cf2 @gabriel Importing
gabriel authored
4 //
d25dae0 @gabriel Refactoring
gabriel authored
5 // Created by Gabriel Handford on 1/21/09.
8b01cf2 @gabriel Importing
gabriel authored
6 // Copyright 2009. All rights reserved.
7 //
4bc30bb @gabriel Fixing header
gabriel authored
8 // Permission is hereby granted, free of charge, to any person
9 // obtaining a copy of this software and associated documentation
10 // files (the "Software"), to deal in the Software without
11 // restriction, including without limitation the rights to use,
12 // copy, modify, merge, publish, distribute, sublicense, and/or sell
13 // copies of the Software, and to permit persons to whom the
14 // Software is furnished to do so, subject to the following
15 // conditions:
16 //
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 // OTHER DEALINGS IN THE SOFTWARE.
28 //
0ba459d @gabriel Adding GTMTestCase support
gabriel authored
29
8b01cf2 @gabriel Importing
gabriel authored
30 #import "GHTestCase.h"
7f82d37 @gabriel - Fixing test stats on parallel running
gabriel authored
31 #import "GHTesting.h"
8b01cf2 @gabriel Importing
gabriel authored
32
33 @implementation GHTestCase
34
d3a778c @gabriel Refactoring for 0.4.1 release
gabriel authored
35 @synthesize logWriter=logWriter_, currentSelector=currentSelector_;
cd84a2a @gabriel Adding test case logging
gabriel authored
36
4767a30 @gabriel Adding space
gabriel authored
37 - (void)failWithException:(NSException *)exception {
e771172 @gabriel Tabs to spaces:
gabriel authored
38 [exception raise];
9622161 @gabriel Fixes
gabriel authored
39 }
8b01cf2 @gabriel Importing
gabriel authored
40
d25dae0 @gabriel Refactoring
gabriel authored
41 - (void)setUp { }
8b01cf2 @gabriel Importing
gabriel authored
42
d25dae0 @gabriel Refactoring
gabriel authored
43 - (void)tearDown { }
8b01cf2 @gabriel Importing
gabriel authored
44
42e225d @gabriel Adding currentSelector and setUpClass/tearDownClass
gabriel authored
45 - (void)setUpClass { }
46
47 - (void)tearDownClass { }
48
0e379ee @gabriel 0.3.9
gabriel authored
49 - (BOOL)shouldRunOnMainThread {
dcdfd6a @johnboiles Saving new and diff images from view tests
johnboiles authored
50 return NO;
0e379ee @gabriel 0.3.9
gabriel authored
51 }
52
69120ce @gabriel Adding handleException; Default to NSLog stack trace.
gabriel authored
53 - (void)handleException:(NSException *)exception {
7f82d37 @gabriel - Fixing test stats on parallel running
gabriel authored
54 NSLog(@"%@", [GHTesting descriptionForException:exception]);
69120ce @gabriel Adding handleException; Default to NSLog stack trace.
gabriel authored
55 }
56
02d42ec @johnboiles Re-enabling GHViewTestCase for command line tests. Filling out some m…
johnboiles authored
57 - (BOOL)isCLIDisabled {
58 return NO;
59 }
60
cd84a2a @gabriel Adding test case logging
gabriel authored
61 #pragma mark Logging
62
187dc02 @gabriel Making log selector public
gabriel authored
63 - (void)log:(NSString *)message {
e771172 @gabriel Tabs to spaces:
gabriel authored
64 [logWriter_ log:message testCase:self];
8b01cf2 @gabriel Importing
gabriel authored
65 }
66
67 @end
Something went wrong with that request. Please try again.