Skip to content

Commit b4d7cf0

Browse files
cameroncookecodex
andcommitted
fix(weather): Remove obsolete mock launch flag usage
Remove the leftover mock weather launch argument from the Weather example README and UI tests. The app now uses deterministic bundled data directly, so tests and docs should not reintroduce the launch flag path. Co-Authored-By: Codex <codex@openai.com>
1 parent 2e45d06 commit b4d7cf0

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

example_projects/Weather/README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22

33
Atmos Weather is a native SwiftUI weather app prototype for iOS.
44

5-
## Launch with mock weather data
5+
## Launch
66

7-
Build and run the app with XcodeBuildMCP first:
7+
Build and run the app with XcodeBuildMCP:
88

99
```bash
1010
../../build/cli.js simulator build-and-run
1111
```
1212

13-
Then relaunch the installed app with the mock API argument:
14-
15-
```bash
16-
../../build/cli.js simulator launch-app --json '{"bundleId":"com.sentry.weather.Weather","launchArgs":["--mock-weather-api"]}'
17-
```
18-
1913
## JSON fixtures
2014

2115
Fixture JSON files live in:
@@ -96,4 +90,4 @@ Run the app test suite through XcodeBuildMCP:
9690
../../build/cli.js simulator test
9791
```
9892

99-
UI tests inject `--mock-weather-api` themselves so they do not depend on the production API endpoint.
93+
The app uses bundled deterministic weather data so UI tests do not depend on the production API endpoint.

example_projects/Weather/WeatherUITests/WeatherUITests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ final class WeatherUITests: XCTestCase {
6969
@MainActor
7070
private func launchApp() -> XCUIApplication {
7171
let app = XCUIApplication()
72-
app.launchArguments.append("--mock-weather-api")
7372
app.launch()
7473
return app
7574
}

example_projects/Weather/WeatherUITests/WeatherUITestsLaunchTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ final class WeatherUITestsLaunchTests: XCTestCase {
2020
@MainActor
2121
func testLaunch() throws {
2222
let app = XCUIApplication()
23-
app.launchArguments.append("--mock-weather-api")
2423
app.launch()
2524

2625
// Insert steps here to perform after app launch but before taking a screenshot,

0 commit comments

Comments
 (0)