GHTest Class Reference
Inherits from | NSObject |
Conforms to | GHTest GHTestCaseLogWriter |
Declared in | GHTest.h GHTest.m |
Overview
Default test implementation with a target/selector pair.
- Tests a target and selector
- Notifies a test delegate
- Keeps track of status, running time and failures
- Stores any test specific logging
Tasks
Other Methods
Other Methods
-
– stats
-
– reset
-
– cancel
-
– setDisabled:
-
– setHidden:
-
– disabledCount
-
– setException:
-
– run:
-
– log:testCase:
JUnitXML Methods
Instance Methods
JUnitXML
Return test results in JUnit XML format for external parsing use (such as a Continuous Integration system like Jenkins).
- (NSString *)JUnitXML
Declared In
GHTest+JUnitXML.h
disabledCount
The number of disabled tests
- (NSInteger)disabledCount
Return Value
The number of disabled tests
Declared In
GHTest.h
initWithIdentifier:name:
Create test with identifier, name.
- (id)initWithIdentifier:(NSString *)identifier name:(NSString *)name
Parameters
- identifier
Unique identifier
- name
Name
Declared In
GHTest.h
initWithTarget:selector:
Create test with target/selector.
- (id)initWithTarget:(id)target selector:(SEL)selector
Parameters
- target
Target (usually a test case)
- selector
Selector (usually a test method)
Declared In
GHTest.h
log:testCase:
Log message.
- (void)log:(NSString *)message testCase:(id)testCase
Parameters
- message
Message
- testCase
Test case
Declared In
GHTest.h
run:
Run the test.
- (void)run:(GHTestOptions)options
Parameters
- options
Options
Declared In
GHTest.h