site-tests
Use when working on documentation tests (site-tests module). Covers test generation pipeline, fixtures, assertions, and debugging.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when working on documentation tests (site-tests module). Covers test generation pipeline, fixtures, assertions, and debugging.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Batch, validate, and consolidate open Dependabot pull requests for memory-service. Use when asked to inspect the Dependabot queue, verify dependency PRs efficiently, reproduce dependency-update CI failures, combine compatible dependency PRs, or create a validated consolidated dependency PR.
Implement or review Memory Service backend operational logging. Use for REST or gRPC boundaries, provider errors, error wrapping, background workers and task attempts, indexers and maintenance jobs, SSE or gRPC streams, request correlation, and changes under internal/operationevent.
Prepare Memory Service changes for pull request submission. Use whenever Codex is asked to create, open, submit, publish, or ready a pull request, or to perform final PR preflight. Require `task generate` before the final PR commit so generated sources and repository-wide formatting are included.
Use when writing or debugging tests for memory-service. Covers Cucumber BDD patterns and failure reporting.
Use when you need build, test, or dev commands for memory-service across Go, Java, frontend, or Python modules.
Use when writing or editing enhancement documents in docs/enhancements/. Provides format, conventions, and numbering guidance.
| name | site-tests |
| description | Use when working on documentation tests (site-tests module). Covers test generation pipeline, fixtures, assertions, and debugging. |
| autoTrigger | [{"files":["site-tests/**","site/src/components/TestScenario.astro","site/src/components/CurlTest.astro","site/src/pages/docs/spring/**","site/src/pages/docs/quarkus/**"]}] |
MDX docs (CurlTest/TestScenario components)
→ Astro build extracts test data
→ site-tests/target/generated-test-resources/test-scenarios.json
→ TestGenerator.java creates .feature file
→ site-tests/target/generated-test-resources/features/documentation-tests.feature
→ Cucumber runs tests
DO NOT edit documentation-tests.feature directly — it's auto-generated. Edit the MDX source files instead.
./mvnw test -pl site-tests -Psite-tests
Redirect output to file and grep for errors (output is very long).
TestScenario wraps a group of CurlTests for a checkpoint:
<TestScenario checkpoint="quarkus/examples/doc-checkpoints/03-with-history">
<CurlTest steps={`...`}>```bash
curl ...
```</CurlTest>
</TestScenario>
CurlTest steps prop contains Cucumber step definitions:
Then the response status should be 200And the response body should be json: (strict JSON equality via Jackson JsonNode.equals())And the response should contain "text" (loose substring check)And the response should match pattern "\\d+" (regex)Use %{response.body.field} for dynamic values (IDs, timestamps). Use static values for deterministic fields (titles, userIds, accessLevels).
And the response body should be json:
"""
{
"id": "%{response.body.id}",
"title": "My Static Title",
"ownerUserId": "bob",
"createdAt": "%{response.body.createdAt}"
}
"""
Array matching is strict — the expected JSON must have the exact same number of array elements as the actual response. If other test scenarios create data visible to the current test, include those items in the assertion.
site-tests/openai-mock/fixtures/{quarkus|spring}/{checkpoint-name}/001.json → 002.json → ... (matched by scenario state, NOT request content)DockerSteps.loadFixturesForCheckpoint()All test scenarios share ONE memory-service instance. Conversations created in one scenario are visible in others. Use different conversation IDs across tutorials, or write assertions that tolerate extra data.
CurlSteps.java retries on 404, 500, 503 (transient startup errors). Max 5 retries, 3s delay.
site/src/components/TestScenario.astro — extracts tests from MDX during Astro buildsite/src/components/CurlTest.astro — wraps curl commands with hidden test stepssite-tests/src/main/java/.../TestGenerator.java — generates .feature from JSONsite-tests/src/test/java/.../steps/CurlSteps.java — curl execution + assertionssite-tests/src/test/java/.../steps/CheckpointSteps.java — builds/starts/stops appssite-tests/src/test/java/.../steps/DockerSteps.java — docker compose + WireMock management