Description
SBTUITestTunnel is a library that extends Apple's UI testing framework for iOS and macOS apps. Apple's UI tests run in a separate process from the app under test, which makes it hard to share data with the app or stub network calls. SBTUITestTunnel fills that gap. It lets tests stub and rewrite network calls, monitor them, and block cookies. It can download and upload files to the app's sandbox, read and write NSUserDefaults, and run custom blocks of code inside the app target. It also covers fine-grained fast scrolling in table, collection and scroll views, and stubbing for CLLocationManager and UNUserNotificationCenter. The library supports parallel testing across several simulators. It has two components, one added to the app target and one to the testing target, which talk to each other. The project is meant to extend XCTest rather than replace it, and it works as a subclass of XCUIApplication. Installation, setup, usage and example documentation are on GitHub.…
Highlights
- Stub, rewrite and monitor network calls in UI tests
- Download and upload files to the app sandbox
- Stub location and notification managers
- Fine-grained fast scrolling in lists and collections
- Supports parallel testing on several simulators
Ratings & Reviews
No ratings yet
Be the first to rate SBTUITestTunnel.
People also visit

swift-testing-expert
Expert guidance for Swift Testing: test structure, #expect/#require macros

ReqRes
Native macOS app to monitor, debug, and mock HTTP(S) requests and responses

ios-simulator-skill
29 production-ready scripts for iOS app testing, building, and automation
SBTUITestTunnel FAQ
What is SBTUITestTunnel?
A library that adds data sharing, network mocks and other controls to Apple's XCTest UI tests.
Who is it for?
Developers who write UI tests for iOS or macOS apps and need to inject data or stub network calls during a test run.
Does it replace XCTest?
No. The project says it is intended to extend XCTest, and it works as a single subclass of XCUIApplication.
Where is the documentation?
The GitHub repository has pages for installation, setup, usage and an example app.
What are the best SBTUITestTunnel alternatives?
Popular alternatives to SBTUITestTunnel include ReqRes, HTTPBot and Tapflow. See all SBTUITestTunnel alternatives









