Commit c40789b
test(snapshot): Add structured JSON fixture targets (#338)
* test(snapshot): Add structured JSON fixture targets
Add a structured JSON fixture corpus for the planned CLI json output mode.
Define shared envelope and schema-family targets in docs/dev/STRUCTURED_JSON_OUTPUT_PLAN.md and capture the expected payloads across simulator, device, macOS, SwiftPM, debugging, discovery, and session workflows.
This keeps the current producer unchanged while giving the upcoming implementation a concrete fixture contract to build against.
Co-Authored-By: OpenAI Codex <noreply@openai.com>
* Fix schema consistency in JSON fixtures
- Add missing isAvailable field to device-list schema in resources/devices--success.json
- Add missing diagnostics field to simulator success fixtures (stop, install, launch-app)
Applied via @cursor push command
* fix(fixtures): Align simulator and resources fixtures with cross-platform schema contract
- Add missing summary.durationMs and summary.target to all simulator fixtures
- Fix singular "Test failed" to "Tests failed" in simulator failure fixtures
- Normalize counts key ordering to passed/failed/skipped in simulator test failure
- Align resources/devices field ordering with device/list fixture
* fix(fixtures): Add missing durationMs and target to simulator error fixtures
* 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
* fix(fixtures): Restructure variables scopes, remove output sections, drop resource fixtures
- Convert debug variables scopes from array to keyed object, remove displayName
- Remove output.stdout/stderr from build-and-run success fixtures
- Remove remainingCount from test failure discovered items
- Delete resource fixtures (devices, doctor, session-status, simulators)
* test(snapshot): Add JSON fixture schema validation
Add a dedicated schema corpus for structured JSON fixtures and validate
each discovered fixture against its declared schema and version.
This gives the hand-crafted fixture contracts an executable check
without coupling them to the existing text snapshot harness.
Co-Authored-By: OpenAI Codex <noreply@openai.com>
* ci(schemas): Add website publish workflow
Document schema versioning and deployment policy and add a
workflow that syncs published schema files into the website
repository for Vercel deployment.
This keeps schema authoring in this repository while making the
published schema URLs durable and real.
Co-Authored-By: OpenAI Codex <noreply@openai.com>
* fix(ci): Harden schema publish workflow
Limit the publish workflow token to read-only contents access and
avoid interpolating the deploy key secret directly inside the shell
guard.
This keeps the workflow aligned with GitHub Actions security
expectations and removes a brittle secret-handling pattern.
Co-Authored-By: OpenAI Codex <noreply@openai.com>
---------
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent dbb2d3b commit c40789b
File tree
173 files changed
+8341
-56
lines changed- .github/workflows
- docs
- dev
- schemas/structured-output
- _defs
- xcodebuildmcp.output.app-path
- xcodebuildmcp.output.build-result
- xcodebuildmcp.output.build-run-result
- xcodebuildmcp.output.build-settings
- xcodebuildmcp.output.bundle-id
- xcodebuildmcp.output.capture-result
- xcodebuildmcp.output.coverage-result
- xcodebuildmcp.output.debug-breakpoint-result
- xcodebuildmcp.output.debug-command-result
- xcodebuildmcp.output.debug-session-action
- xcodebuildmcp.output.debug-stack-result
- xcodebuildmcp.output.debug-variables-result
- xcodebuildmcp.output.device-list
- xcodebuildmcp.output.install-result
- xcodebuildmcp.output.launch-result
- xcodebuildmcp.output.process-list
- xcodebuildmcp.output.project-list
- xcodebuildmcp.output.scaffold-result
- xcodebuildmcp.output.scheme-list
- xcodebuildmcp.output.session-defaults
- xcodebuildmcp.output.session-profile
- xcodebuildmcp.output.simulator-action-result
- xcodebuildmcp.output.simulator-list
- xcodebuildmcp.output.stop-result
- xcodebuildmcp.output.test-result
- xcodebuildmcp.output.ui-action-result
- src/snapshot-tests
- __fixtures__/json
- coverage
- debugging
- device
- macos
- project-discovery
- project-scaffolding
- session-management
- simulator-management
- simulator
- swift-package
- ui-automation
- utilities
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
173 files changed
+8341
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
0 commit comments