Repository navigation
Commit e21bf43
Cameron Cooke
feat(testing): Support reusable prepared test artifacts (#475)
* feat(xcodebuild): Support prepared test artifacts
Extend existing build and test tools to prepare, return, and consume reusable test artifacts while preserving normal build behavior.
Fixes #450
* feat(manifest): Support conditional next steps
Move conditional next-step selection into tool manifests and preserve the behavior across MCP, CLI, daemon, and snapshot outputs.
Refs #450
* fix(testing): Stabilize prepared test execution
Keep source-only xcodebuild arguments out of the generated test-without-building phase and sort final test failures independently of emission order.
* test(snapshot): Align device test schema versions
* fix(test): Extract failures from managed result bundles
* fix(test): Preserve explicit test destinations
* test(snapshot): isolate snapshot preflight state
Share per-test environment setup and cleanup across snapshot suites, cache suite-level simulator builds, and normalize volatile output so fixtures remain stable. Update non-environmental fixtures and add coverage for cleanup and normalization behavior.
* fix(testing): address prepared test review findings
Prevent session defaults and selectors from leaking into prepared test runs, remove a useless simulator state initializer, and align volatile snapshot fixtures across CLI and MCP.
* fix(testing): preserve prepared test selectors
Keep only-testing and skip-testing arguments in the prepared test phase while retaining session-default conflict filtering.
* fix(testing): only mark successful test products complete
* fix: stabilize prepared test snapshot fixtures
* fix: honor test product retention options
* fix: reject device destinations without prepared tests
* fix: isolate session destinations for device builds
* fix: mark failed prepared builds complete
* fix: remove unstable snapshot fixture churn
* fix(snapshot): Tolerate simulator lifecycle races
Retry app cleanup after a concurrent simulator shutdown and tolerate a boot that completes between the state check and boot command.
* test(snapshot): Align prepared test fixtures
Update the discovery schema expectation and keep device and macOS fixtures aligned with the generated artifacts.
* fix(snapshot): Handle teardown shutdown races
Treat an already-shut-down simulator as successful cleanup and align compiler-failure fixtures with the emitted result shape.
* fix: Align prepared test review fixes
* fix(snapshot): Stabilize isolated fixture output
* fix(test): Sanitize managed test product paths
* fix: preserve test product retention cap1 parent 60cfdc3 commit e21bf43
363 files changed
Lines changed: 8223 additions & 2258 deletions
File tree
- example_projects/iOS_Calculator/CalculatorApp
- manifests/tools
- schemas/structured-output
- xcodebuildmcp.output.build-result
- xcodebuildmcp.output.test-result
- src
- cli/commands
- core
- __tests__
- manifest
- __tests__
- daemon
- __tests__
- integrations/xcode-tools-bridge
- mcp/tools
- device
- __tests__
- macos
- __tests__
- simulator
- __tests__
- ui-automation
- __tests__
- rendering
- runtime
- __tests__
- smoke-tests/__tests__
- snapshot-tests
- __fixtures__
- cli
- json
- coverage
- debugging
- device
- macos
- simulator
- swift-package
- ui-automation
- text
- coverage
- debugging
- device
- macos
- simulator
- swift-package
- ui-automation
- mcp
- json
- debugging
- device
- macos
- simulator
- swift-package
- ui-automation
- text
- coverage
- debugging
- device
- macos
- simulator
- swift-package
- ui-automation
- __tests__
- preflight
- __tests__
- suites
- test-utils
- types
- utils
- __tests__
- purge-storage
- renderers
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
694 | 699 | | |
695 | 700 | | |
696 | 701 | | |
697 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
28 | 48 | | |
29 | 49 | | |
30 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments