<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTSkip-swift.struct/init(_:file:line:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "s:6XCTest7XCTSkipV_4file4lineACSSSg_s12StaticStringVSutcfc"
  },
  "title" : "init(_:file:line:)"
}
-->

# init(_:file:line:)

Intitializes an error to skip a test.

```
init(_ message: String? = nil, file: StaticString = #filePath, line: UInt = #line)
```

## Parameters

`message`

A description of the skip.

`file`

The file in which the skip occurred. This value defaults to the file name of the test case in which this error was initialized.

`line`

The line number on which the skip occurred. This value defaults to the line number on which this error was initialized.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)