You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `target` | Target name used for snapshot generation.Default: *FirstTarget* |
44
-
| `test_target_path` | Path to unit test directory. Snapshots will be written to its `__Snapshots__` folder.Default: target name folder |
45
-
| `test_file_path` | Output file path for generated tests.Default: DerivedData or resolved via plugin |
46
-
| `template_file_path` | Custom template path relative to target. Optional.Defaults:‣ *PreviewTests.stencil* for test plugin‣ *PreviewModels.stencil* for playbook plugin |
47
-
| `simulator_device` | Device identifier used to run tests (e.g. `iPhone15,2`). Optional |
48
-
| `required_os` | Minimal iOS version required for preview rendering. Optional |
49
-
| `snapshot_devices` | List of logical snapshot "targets" (used as trait collections).Each will snapshot separately. Optional |
50
-
| `preview_default_enabled` | Should all detected previews be included by default?Set `false` if you want to require `.prefireEnabled()` manually.Default: `true`|
51
-
| `sources` | List of Swift files or folders to scan for previews.Defaults to inferred from the target |
52
-
| `imports` | Extra imports added to the generated test or playbook file |
53
-
| `testable_imports` | Extra `@testable` imports added to allow test visibility |
44
+
| `target` | Target name used for snapshot generation. Default: *FirstTarget* |
45
+
| `test_target_path` | Path to unit test directory. Snapshots will be written to its `__Snapshots__` folder. Default: target name folder |
46
+
| `test_file_path` | Output file path for generated tests. Default: DerivedData or resolved via plugin |
47
+
| `template_file_path` | Custom template path relative to target. Optional. Defaults:‣ *PreviewTests.stencil* for test plugin‣ *PreviewModels.stencil* for playbook plugin|
48
+
| `simulator_device` | Device identifier used to run tests (e.g. `iPhone15,2`). Optional |
49
+
| `required_os` | Minimal iOS version required for preview rendering. Optional |
50
+
| `snapshot_devices` | List of logical snapshot "targets" (used as trait collections). Each will snapshot separately. Optional |
51
+
| `preview_default_enabled` | Should all detected previews be included by default? Set `false` if you want to require `.prefireEnabled()` manually. Default: `true`|
52
+
| `use_grouped_snapshots` | Generate a single test file with all previews (`true`) or separate test files per source file (`false`). When `false`, use `{PREVIEW_FILE_NAME}` placeholder in `test_file_path`. Default: `true`|
53
+
| `sources` | List of Swift files or folders to scan for previews. Defaults to inferred from the target |
54
+
| `imports` | Extra imports added to the generated test or playbook file |
55
+
| `testable_imports` | Extra `@testable` imports added to allow test visibility |
54
56
55
57
---
56
58
@@ -61,4 +63,4 @@ Prefire will use these settings when generating files either via:
61
63
- CLI: `prefire tests`, `prefire playbook`
62
64
- Plugin: attached to test or main targets in Xcode/SwiftPM
63
65
64
-
To support different configurations per module, you may also use multiple `.prefire.yml` files — one per package, if needed.
66
+
To support different configurations per module, you may also use multiple `.prefire.yml` files — one per package, if needed.
0 commit comments