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 *)JUnitXMLDeclared In
GHTest+JUnitXML.hdisabledCount
The number of disabled tests
- (NSInteger)disabledCountReturn Value
The number of disabled tests
Declared In
GHTest.hinitWithIdentifier:name:
Create test with identifier, name.
- (id)initWithIdentifier:(NSString *)identifier name:(NSString *)nameParameters
- identifier
Unique identifier
- name
Name
Declared In
GHTest.hinitWithTarget:selector:
Create test with target/selector.
- (id)initWithTarget:(id)target selector:(SEL)selectorParameters
- target
Target (usually a test case)
- selector
Selector (usually a test method)
Declared In
GHTest.hlog:testCase:
Log message.
- (void)log:(NSString *)message testCase:(id)testCaseParameters
- message
Message
- testCase
Test case
Declared In
GHTest.hrun:
Run the test.
- (void)run:(GHTestOptions)optionsParameters
- options
Options
Declared In
GHTest.h