Commit 1414653
committed
test(render): add scenario tests and test infrastructure
Add 9 scenario tests for component render:
- TestRenderSimpleLocalSpec
- TestRenderWithConfiguredOutputDir (config-provided output dir)
- TestRenderWithOverlayApplied
- TestRenderWithPatchSidecar
- TestRenderStaleCleanup (--force required)
- TestRenderRefusesOverwriteWithoutForce (safety test)
- TestRenderSpecWithUndefinedMacros (golang/gometa via mock)
- TestRenderMultipleComponentsParallel (batch processing)
- TestRenderBrokenSpecWithGoodSpec (partial failure handling)
Test infrastructure additions:
- AddFile(): arbitrary file content in test projects
- WithGitRepo(): git init + commit for synthetic history
- WithRenderedSpecsDir(): set config rendered-specs-dir
- initProjectGitRepo(): uses t.Context() for cancellation1 parent 75131e9 commit 1414653
2 files changed
Lines changed: 589 additions & 1 deletion
0 commit comments