# Replay: Record and Replay HTTP Traffic for Swift Tests

DevFeed: [Replay: Record and Replay HTTP Traffic for Swift Tests](<https://devfeed.tech/articles/replay-29003.md>)

Original publisher: [Read original article](<https://nshipster.com/replay/>)

Author: Mattt (mattt@nshipster.com)

Published: 2025-12-31T08:00:00Z

Content type: article

Language: en

Sources: [NSHipster](<https://devfeed.tech/sources/nshipster.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Swift Testing](<https://devfeed.tech/topics/swift-testing.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [http](<https://devfeed.tech/tags/http.md>), [miscellaneous](<https://devfeed.tech/tags/miscellaneous.md>), [swift](<https://devfeed.tech/tags/swift.md>), [swift-testing](<https://devfeed.tech/tags/swift-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

Replay is a Swift testing approach that records real HTTP traffic as HAR files and replays it during subsequent test runs. It aims to avoid live-service flakiness, hand-maintained fixtures, and duplicate networking implementations while using Swift Testing and package plugins.

## Source excerpt

Fast, reliable API tests without mocks or stale JSON fixtures. Replay records real HTTP traffic once (as HAR) and replays it instantly with Swift Testing so your networking code stays honest and your test suite stays fast.