fastapi-test

Solid

Use when the user wants tests written for current changes (uncommitted diff or recent feature). Matches the repo's existing test framework, fixtures, and assertion style. Covers happy path, edge cases, and error paths without over-mocking.

Testing & QA 11 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
36
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

Write tests for the current changes. Follow these steps: 1. **Read CLAUDE.md** to understand the project's test framework, conventions, and test commands. 2. **Read any `.claude/rules/*.md`** whose `paths:` glob matches the changed files — they capture testing conventions specific to this layer (e.g. how API tests are structured vs. how DB tests are structured). 3. **Identify what changed** with `git diff master...HEAD` (the whole branch's work), plus `git diff` and `git diff --cached` for any uncommitted edits — not a bare `git diff`, which would miss everything already committed on the branch. Classify the change: - **Pure refactor** (code moved/renamed, no behavior change): update existing tests' imports and call sites; do NOT invent new tests for behavior that already had coverage. - **New behavior or modified behavior**: continue to step 4. 4. **Find existing test files** for the modules you're testing. Read them fully — match their patterns: - File naming and location conventions. - Fixtures, factories, helpers, and setup/teardown patterns. - Assertion style and test structure. - How similar features are tested (use as a template). 5. **Write focused tests** that cover: - **Happy path** — the expected behavior works correctly. - **Edge cases** — empty inputs, boundary values, null/nil, large inputs. - **Error cases** — invalid input, missing data, permission failures. Test that errors are handled, not just that they don't crash. - **Behavi...

Details

Author
steph-dove
Repository
steph-dove/klaussy-agents
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category