← ClaudeAtlas

ddw-testlisted

Runs the project's tests, generating missing ones when needed. A blocking gate. Trigger: /ddw-test, during DDW's CODE phase.
soydiloreto/dilux-development-workflow · ★ 14 · Testing & QA · score 75
Install: claude install-skill soydiloreto/dilux-development-workflow
# Skill: /ddw-test ## Description Runs the project's tests. Generates missing tests where needed. A blocking gate. ## Inputs - Scope: an explicit argument, the modified files (`git diff`), or the full suite. - `.ddw/rules/testing.instructions.md` for the conventions. - The spec/fix-plan, to know which tests are expected. - The project's test runner: the "Stack" section of `AGENTS.md`. ## Execution Protocol 1. **Detect the scope:** - With an argument → run that module's/file's tests. - Post-block in CODE → run the block's tests. - In the closeout sequence → run the full suite. 2. **Check that the tests exist:** - For each modified logic file, check whether a corresponding test exists. - If it does not → generate one following `.ddw/rules/testing.instructions.md`. - **Rule #0 applies to any test you generate:** a test that modifies data creates its own data in setup, only operates on what it created, and cleans up in teardown. Never destructive operations against existing environment data. 3. **Run the tests:** - Use the test runner command declared in `AGENTS.md` ("Stack" section). - Capture the full output. 4. **Analyze the results:** - On failure: work out whether the bug is in the test or in the code. - Fix and re-run. Max 3 attempts before reporting to the user. ## Output Format ``` ┌─────────────────────────────────────────────────────────────┐ │ /ddw-test [scope] — [PASSED | BLOCKED] │ ├──────────────