Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Test Driven Development

Skill Aktiv
Teil von:Tdd

Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests actually verify behavior by requiring failure first

Zweck

To enforce Test-Driven Development by ensuring tests are written first, verified to fail, and then minimal code is written to pass them, guaranteeing behavioral verification.

Funktionen

  • Enforces Test-Driven Development methodology
  • Requires tests to fail before implementation code is written
  • Provides step-by-step guidance for the Red-Green-Refactor cycle
  • Details common TDD anti-patterns and rationalizations
  • Ensures tests verify behavior, not just implementation

Anwendungsfälle

  • Implementing new features using TDD
  • Fixing bugs with a test-first approach
  • Refactoring code while maintaining test coverage
  • Ensuring code quality through rigorous testing practices

Nicht-Ziele

  • Writing tests after implementation code
  • Skipping TDD for perceived simple code or prototypes
  • Accepting tests that pass immediately without prior failure
  • Treating testing as an optional afterthought

Workflow

  1. Write a failing test for the desired behavior (RED).
  2. Verify that the test fails correctly.
  3. Write the minimal amount of code to make the test pass (GREEN).
  4. Verify that the test passes and all other tests still pass.
  5. Refactor the code while keeping tests green.
  6. Repeat the cycle for the next piece of behavior.

Praktiken

  • Test-Driven Development

Maintenance

  • warning:Commit recencyThe last commit was over 90 days ago, indicating potential lack of recent maintenance.

Trust

  • warning:Issues AttentionThere are 6 open issues and 8 closed issues in the last 90 days, indicating a low closure rate and potentially slow maintainer response.

Versioning

  • warning:Release ManagementThere is no explicit versioning system (like semver in frontmatter or CHANGELOG) and installation instructions reference `main`, making it difficult to pin a specific version.

Installation

Zuerst Marketplace hinzufügen

/plugin marketplace add NeoLabHQ/context-engineering-kit
/plugin install tdd@context-engineering-kit

Qualitätspunktzahl

75 /100
Analysiert 1 day ago

Vertrauenssignale

Letzter Commit9 days ago
Sterne993
LizenzGPL-3.0
Status
Quellcode ansehen