Skip to content

Unit tests may be skipped #19

@dodikk

Description

@dodikk

Some tests contain static guards against second launch.
In this case they will pass but won't check anything.

- (void)testAddClassMethodIfNeedWithSelector
{
    static BOOL firstTestRun = YES;

    if (firstTestRun) {
    }

}

Please use comments or XCTFail() for such cases.

- (void)testAddClassMethodIfNeedWithSelector
{
    static BOOL firstTestRun = YES;

    if (firstTestRun) {
    }
    else
    {
        XCTFail( @"Test cannot be run twice" );
        return;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions