Open ExoticObjects opened 11 years ago
Some of this is self explanatory. Just change paths like .octest to .xctest, etc.
.octest
.xctest
But there's one aspect that I couldn't figure out. SGXCodeTest.m looks like this:
SGXCodeTest.m
+ (void)applicationDidBecomeActive:(NSNotification *)notification { SenSelfTestMain(); }
SenSelfTestMain(); is in a file called SenTestProbe.h. There doesn't appear to be an equivalent file or method in XCTest
SenSelfTestMain();
SenTestProbe.h
XCTest
I commented out that line and the related imports, and my tests claim that they are now compiling. But I get this error:
Assertion failed: (loadedTests != NULL), function +[SGXcodeTest load],
I'm not surprised that it doesn't work without some kind of equivalent to the SenSelfTestMain(); call.
Any advice? Has anyone made these changes to enable working with XCTest?
UPDATE: I found XCTSelfTestMain()
XCTSelfTestMain()
But I'm still getting Assertion failed: (loadedTests != NULL), function +[SGXcodeTest load]
Assertion failed: (loadedTests != NULL), function +[SGXcodeTest load]
Some of this is self explanatory. Just change paths like
.octest
to.xctest
, etc.But there's one aspect that I couldn't figure out.
SGXCodeTest.m
looks like this:SenSelfTestMain();
is in a file calledSenTestProbe.h
. There doesn't appear to be an equivalent file or method inXCTest
I commented out that line and the related imports, and my tests claim that they are now compiling. But I get this error:
Assertion failed: (loadedTests != NULL), function +[SGXcodeTest load],
I'm not surprised that it doesn't work without some kind of equivalent to the
SenSelfTestMain();
call.Any advice? Has anyone made these changes to enable working with XCTest?