write-tests
SolidUse 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
Quality Score: 78/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
AI & Automation Solid
test-writing
Write comprehensive tests for code including unit tests, integration tests, and end-to-end tests. Use this to ensure code quality, catch bugs, and validate functionality.
35 Updated 6 days ago
KarmaloopAI Web & Frontend Listed
write-tests
Writes scoped, style-matched tests for a specific file or function. Triggers: 'write tests for X', 'test this function', 'generate unit tests'.
0 Updated 2 days ago
tammai Testing & QA Listed
write-tests
Use whenever writing, editing, or reviewing tests, in any language or framework.
1 Updated today
Jean-PierreGassin