SKILL

tdd-guide

Test-first development and test generation for Jest, Pytest, JUnit, Vitest or Mocha: red-green-refactor, fixtures and mocks, coverage gaps. Use whenever the user asks to write tests (before or after the code), mock a dependency or raise coverage.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • TDD Guide
  • Workflows
  • Generate Tests from Code
  • Analyze Coverage Gaps
  • TDD New Feature
  • Examples
  • Test Generation — Input → Output (Pytest)
  • Coverage Analysis — Sample P0/P1/P2 Output

Test-driven development skill for generating tests, analyzing coverage, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, and Vitest. -- 1. Provide source code (TypeScript, JavaScript, Python, Java) 2. Specify target framework (Jest, Pytest, JUnit, Vitest) 3. Run testgenerator.py with requirements 4. Review generated test stubs 5. Validation: Tests compile and cover happy path, error cases, edge cases 1. Generate coverage report from test runner (npm test -- --coverage) 2. Run coverageanalyzer.py on LCOV/JSON/XML report 3. Review prioritized gaps (P0/P1/P2) 4. Generate missing tests for uncovered paths 5. Validation: Coverage meets target threshold (typically 80%+) 1. Write failing test first (RED) 2. Run tddworkflow.py --phase red to validate 3. Implement minimal code to pass (GREEN) 4. Run tddworkflow.py --phase green to validate 5. Refactor while keeping tests green (REFACTOR) 6. Validation: All tests pass after each cycle -- Input source function (mathutils.py): Command: Generated test output (testmathutils.py): -- Command: Sample output: -- | Tool | Purpose | Usage | |------|---------|-------| | testgenerator.py | Generate test cases from code/requirements |

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
alirezarezvani/claude-skills
Source file
engineering-team/skills/tdd-guide/SKILL.md
Fixed revision
8f082544116fc0d014188e521ca40304cdfc86b0
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: alirezarezvani/claude-skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:46.516Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.