Codex Craftless Kotlin Test Strategy for Ktor HTTP Contracts
Select unit, slice or process-level tests in Craftless. Use an appropriate HTTP slice to prove status codes and response shapes.
中文Install in Codex
Open Craftless in Codex and locate the Kotlin/JVM service module and its existing Ktor test fixtures.
- Review `.agents/skills/test-suite-builder/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/test-suite-builder/` in your project and save the reviewed file as `.agents/skills/test-suite-builder/SKILL.md`.
- Start Codex from that project's root, then type `$test-suite-builder` and select the matching skill.
Example task
Design the smallest test for an empty list on this illustrative route.
{"route":"/sessions","fixtureCount":0,"expectedStatus":200,"expectedBody":[]}What to check
Choose a `Ktor test host` slice with an empty-session fixture and assert `status=200` and `body=[]`.
Original SKILL.md on GitHub · Updated
Frequently asked question
When does the real process need to run?
Add a process-level or integration test when the behavior involves a real runtime boundary that a local slice cannot prove.