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
Add preview test fixtures and update skill with testing learnings
Test fixtures for T1-T10: single-file Python, project website, keep-ipynb,
plain qmd, and knitr. Project scaffolded via quarto create.
Skill updated with: venv activation requirement, Windows SIGINT limitation
for cleanup testing, simplified background process examples.
3. Edit source file, wait 3-5 seconds for re-render
65
69
4. Verify content updated in browser
66
70
5. Check filesystem for unexpected artifacts
67
-
6. Stop preview (Ctrl+C or kill), verify cleanup
71
+
6. Stop preview, verify cleanup
68
72
69
73
## What to Verify
70
74
@@ -74,6 +78,10 @@ The core test pattern:
74
78
75
79
**On filesystem**: No orphaned temp files, cleanup happens on exit.
76
80
81
+
## Windows Limitations
82
+
83
+
On Windows, `kill` from Git Bash does not trigger Quarto's `onCleanup` handler (SIGINT doesn't propagate to Windows processes the same way). Cleanup-on-exit verification requires an interactive terminal with Ctrl+C. For automated testing, verify artifacts *during* preview instead.
84
+
77
85
## Context Types
78
86
79
87
Preview behaves differently depending on input:
@@ -92,9 +100,9 @@ See `llm-docs/preview-architecture.md` for the full architecture.
92
100
- Testing render output only (no live preview needed) — use `quarto render`
93
101
- CI environments without browser access
94
102
95
-
## Test Cases
103
+
## Test Fixtures and Cases
96
104
97
-
Specific test matrices live in `tests/docs/manual/preview/README.md`. This skill covers the general workflow.
105
+
Test fixtures live in `tests/docs/manual/preview/`. The full test matrix is in `tests/docs/manual/preview/README.md`.
0 commit comments