Skip to content

Commit e810b18

Browse files
committed
fix(fixtures): Replace string placeholders with mock numeric values across all fixtures
- durationMs: "<DURATION>" -> 1234 - processId/pid: "<PID>" -> 99999 - Test failure counts: "<PASS_COUNT>"/"<FAIL_COUNT>"/"<SKIP_COUNT>" -> mock integers matching discovered totals - session-status: uptimeMs/rssBytes/heapUsedBytes -> mock integers - doctor: manifest counts, simulatorVideoCaptureSupported -> proper types - stack: threadId/index -> integers - swift-package/list: rename uptime -> uptimeSeconds - Fix remaining "Test failed" -> "Tests failed" in macos and swift-package error fixtures
1 parent 9b5bc3a commit e810b18

40 files changed

Lines changed: 93 additions & 93 deletions

src/snapshot-tests/__fixtures__/json/debugging/attach--success-continue.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"artifacts": {
1414
"simulatorId": "<UUID>",
15-
"processId": "<PID>"
15+
"processId": 99999
1616
}
1717
}
1818
}

src/snapshot-tests/__fixtures__/json/debugging/attach--success.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"artifacts": {
1414
"simulatorId": "<UUID>",
15-
"processId": "<PID>"
15+
"processId": 99999
1616
}
1717
}
1818
}

src/snapshot-tests/__fixtures__/json/debugging/stack--success.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"data": {
77
"threads": [
88
{
9-
"threadId": "<THREAD_ID>",
9+
"threadId": 1,
1010
"name": "Thread 1",
1111
"truncated": true,
1212
"frames": [
1313
{
14-
"index": "<N>",
14+
"index": 0,
1515
"symbol": "static CalculatorApp.$main()",
1616
"displayLocation": "<HOME>/Library/Developer/CoreSimulator/Devices/<UUID>/data/Containers/Bundle/Application/<UUID>/CalculatorApp.app/CalculatorApp.debug.dylib`static CalculatorApp.CalculatorApp.$main() -> ():<OFFSET>"
1717
},
1818
{
19-
"index": "<N>",
19+
"index": 1,
2020
"symbol": "main",
2121
"displayLocation": "<HOME>/Library/Developer/CoreSimulator/Devices/<UUID>/data/Containers/Bundle/Application/<UUID>/CalculatorApp.app/CalculatorApp.debug.dylib`main:<OFFSET>"
2222
}

src/snapshot-tests/__fixtures__/json/device/build--error-wrong-scheme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"data": {
77
"summary": {
88
"status": "FAILED",
9-
"durationMs": "<DURATION>",
9+
"durationMs": 1234,
1010
"target": "device"
1111
},
1212
"artifacts": {

src/snapshot-tests/__fixtures__/json/device/build--success.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"data": {
77
"summary": {
88
"status": "SUCCEEDED",
9-
"durationMs": "<DURATION>",
9+
"durationMs": 1234,
1010
"target": "device"
1111
},
1212
"artifacts": {

src/snapshot-tests/__fixtures__/json/device/build-and-run--error-wrong-scheme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"data": {
77
"summary": {
88
"status": "FAILED",
9-
"durationMs": "<DURATION>",
9+
"durationMs": 1234,
1010
"target": "device"
1111
},
1212
"artifacts": {

src/snapshot-tests/__fixtures__/json/device/build-and-run--success.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"data": {
77
"summary": {
88
"status": "SUCCEEDED",
9-
"durationMs": "<DURATION>",
9+
"durationMs": 1234,
1010
"target": "device"
1111
},
1212
"artifacts": {
1313
"appPath": "<HOME>/Library/Developer/XcodeBuildMCP/DerivedData/Build/Products/Debug-iphoneos/CalculatorApp.app",
1414
"bundleId": "io.sentry.calculatorapp",
15-
"processId": "<PID>",
15+
"processId": 99999,
1616
"deviceId": "<UUID>",
1717
"buildLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/build_run_device_<TIMESTAMP>_pid<PID>.log"
1818
},

src/snapshot-tests/__fixtures__/json/device/launch--success.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"artifacts": {
1111
"bundleId": "io.sentry.calculatorapp",
1212
"deviceId": "<UUID>",
13-
"processId": "<PID>"
13+
"processId": 99999
1414
},
1515
"diagnostics": {
1616
"warnings": [],

src/snapshot-tests/__fixtures__/json/device/stop--error-no-app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"artifacts": {
1111
"deviceId": "<UUID>",
12-
"processId": "<PID>"
12+
"processId": 99999
1313
},
1414
"diagnostics": {
1515
"warnings": [],

src/snapshot-tests/__fixtures__/json/device/stop--success.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"artifacts": {
1111
"deviceId": "<UUID>",
12-
"processId": "<PID>"
12+
"processId": 99999
1313
},
1414
"diagnostics": {
1515
"warnings": [],

0 commit comments

Comments
 (0)