Skip to content

Files

Latest commit

 

History

History
37 lines (24 loc) · 489 Bytes

xctfail_message.md

File metadata and controls

37 lines (24 loc) · 489 Bytes

Pattern: Missing description for XCTFail()

Issue: -

Description

An XCTFail call should include a description of the assertion.

Examples of correct code:

func testFoo() {
    XCTFail("bar")
}


func testFoo() {
    XCTFail(bar)
}

Examples of incorrect code:

func testFoo() {
    XCTFail()
}


func testFoo() {
    XCTFail("")
}

Further Reading