write-tests

Solid

Use when a module or function lacks tests and you need to generate meaningful unit or integration tests that cover the real behaviour.

AI & Automation 1 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 78/100

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

Skill Content

# Write Tests ## When to use Use this skill when code is untested, when a bug needs a regression test, or when coverage on a path is missing. ## Steps 1. Read the target and identify public behaviour, edge cases, and failure modes. 2. Choose the right level: unit for pure logic, integration for I/O and boundaries. 3. Write one test per behaviour using the project's existing framework and fixtures. 4. Include at least one edge case and one error-path assertion. 5. Run the suite and keep only tests that fail without the fix and pass with it. ## Examples - "Write pytest tests for utils/parser.py" - "Add integration tests for the /checkout endpoint" ## References Follow the project's test style; never test private internals or assert on exact error strings that may change.

Details

Author
NSBen
Repository
NSBen/skillfoundry
Created
4 days ago
Last Updated
4 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category