---
title: XCTSkip
framework: xctest
role: symbol
role_heading: Structure
path: xctest/xctskip-swift.struct
---

# XCTSkip

An error that causes the current test to cease executing and the test runner to mark the test as skipped when the test throws the error.

## Declaration

```swift
struct XCTSkip
```

## Topics

### Skipping a Test

- [init(_:file:line:)](xctest/xctskip-swift.struct/init(_:file:line:).md)

### Describing a Skipped Test

- [message](xctest/xctskip-swift.struct/message.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Error](swift/error.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Methods for Skipping Tests

- [XCTSkipIf(_:_:file:line:)](xctest/xctskipif(_:_:file:line:).md)
- [XCTSkipUnless(_:_:file:line:)](xctest/xctskipunless(_:_:file:line:).md)
