Add TypeScript AppHost publish E2E coverage#17286
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17286Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17286" |
There was a problem hiding this comment.
Pull request overview
Adds a new CLI end-to-end test to provide stable coverage for TypeScript AppHost aspire publish flows that exercise the supported JavaScript publish patterns and validate the generated Docker Compose / Dockerfile artifacts.
Changes:
- Add a TypeScript AppHost publish E2E test that copies the existing JsPublish fixtures into a temporary workspace, runs
aspire publish -o artifacts, and asserts on compose + per-resource Dockerfile output. - Add helper methods to write the TypeScript AppHost and copy fixture directories into the workspace.
- Add Dockerfile/compose assertions for static site, node server, npm-script, and Next.js standalone publish outputs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
JamesNK
left a comment
There was a problem hiding this comment.
LGTM. Clean, well-structured E2E test that follows established patterns. Two minor nits inline (duplicated helper, weak assertion fragment) — neither blocking.
…script-publish-e2e-coverage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…script-publish-e2e-coverage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
❓ CLI E2E Tests unknown — 95 passed, 0 failed, 2 unknown (commit View all recordings
📹 Recordings uploaded automatically from CI run #26179875999 |
|
✅ No documentation update needed. docs_required → already documented by name The only triggered signal is
The PR adds E2E test coverage for TypeScript AppHost publish flows (static site, node server, npm-script, Next.js standalone) and incidentally marks |
Description
TypeScript AppHost publish support needs stable, non-quarantined E2E coverage for the supported JavaScript publish patterns so regressions are caught on the real CLI publish path instead of only through code generation checks.
This adds a focused CLI E2E test that creates a TypeScript AppHost, publishes through Docker Compose, and validates the generated compose/Dockerfile artifacts for static website, node server, npm-script, and Next.js standalone publishing using the existing JavaScript publish fixtures.
Fixes: #17038
Validation:
./dotnet.sh build tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj --no-restore /p:SkipNativeBuild=trueunix:///Users/sebastienros/.docker/run/docker.sock.Checklist
<remarks />and<code />elements on your triple slash comments?