test (docs) Guide for writing e2e tests that take summaries - #27488
Conversation
Add WritingTestsThatTakeSummaries.md documenting the pattern for end-to-end tests that drive summaries on demand: the two container configurations (interactive vs. summarizer), how to take and inspect a summary, how to load a container or summarizer from a specific summary, and the rules that keep these tests deterministic. Also add a table of contents and Introduction section to the package README and WritingCompatCorrectTests.md, and link the new doc from the README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (450 lines, 5 files), I've queued these reviewers:
How this works
|
…ting guide Point readers who browse src/test/summarization/ to WritingTestsThatTakeSummaries.md, with a few worked examples. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Mark Fields (markfields)
left a comment
There was a problem hiding this comment.
This is great!
Joshua Smithrud (Josmithr)
left a comment
There was a problem hiding this comment.
I left a couple nitpicks and mechanical suggestions, but the docs look great! Thanks for doing this!
…nce boundaries Add summarizeSmokeTest.spec.ts as a real, runnable smoke test and embed it into WritingTestsThatTakeSummaries.md via markdown-magic, so the documented "complete minimal example" stays in sync with code that compiles and passes. Writing the test surfaced a bug in the prose example: passing the interactive config (state: "disabled") into createSummarizer fails; the test uses the default disableHeuristics config instead. Also reformat the guide's prose to one sentence per line per the repo's Markdown best practices, and fix two typos. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output |
b9363c4
into
microsoft:main
Description
Adds a new doc,
WritingTestsThatTakeSummaries.md, to thetest-end-to-end-testspackage documenting the pattern for writing end-to-end tests that drive summaries on demand. It covers:summarizeNowand inspect the result.syncSummarizer: true,ensureSynchronized()before summarizing, chaining viasummaryVersion, closing one summarizer before starting another, etc.).It also adds a Table of Contents and an Introduction section to the package
README.mdandWritingCompatCorrectTests.mdfor consistency and navigation, links the new doc from the README, and fixes a heading typo ("Enpdoint" → "Endpoint") in the README.Documentation-only change — no code or public API is affected.