Skip to content

Needs to be updated to use XCTest instead of SenTestCase #9

@ExoticObjects

Description

@ExoticObjects

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:

+ (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

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions