---
title: XCTSkip
framework: XCTest
role: symbol
role_heading: Structure
platforms: []
path: xctest/xctskip
---

# 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:)](xctskip-swift.struct/init(_:file:line:).md)

### Describing a Skipped Test

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

## Relationships

### Conforms To

- CustomNSError
- Error
- Sendable
- SendableMetatype

## See Also

### Methods for Skipping Tests

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