-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Test global hooks with a bit more rigor
In particular, use TestObservationHelper to count the number of started and finished SPECS so we can compare this to the number of times the +beforeEach and +afterEach methods are called on classes conforming to CDRHooks Unfortunately this isn't universal as the observer only works in test bundle builds.
- Loading branch information
Sam Coward and Tim Jarratt
committed
Apr 13, 2016
1 parent
82debd2
commit 2db594b
Showing
4 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface TestObservationHelper : NSObject | ||
+ (NSUInteger)startedSpecCount; | ||
+ (NSUInteger)finishedSpecCount; | ||
+ (NSArray *)knownTestSuites; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters