XCTFail Message
An XCTFail call should include a description of the assertion
- Identifier:
xctfail_message
- Enabled by default: Yes
- Supports autocorrection: No
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 5.0.0
- Default configuration:
Key Value severity warning
Non Triggering Examples
func testFoo() {
XCTFail("bar")
}
func testFoo() {
XCTFail(bar)
}
Triggering Examples
func testFoo() {
↓XCTFail()
}
func testFoo() {
↓XCTFail("")
}