test-driven-development

Test-Driven Development (TDD)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test-driven-development" with this command: npx skills add sraloff/gravityboots/sraloff-gravityboots-test-driven-development

Test-Driven Development (TDD)

When to use this skill

  • Starting a new complex feature.

  • Fixing a bug (write test to reproduce first).

  • Refactoring critical paths.

  1. The Cycle (Red-Green-Refactor)
  • Red: Write a failing test that defines the desired behavior.

  • Green: Write the minimum code to pass the test.

  • Refactor: Clean up the code while keeping tests green.

  1. Tools & Config
  • PHP: Use Pest or PHPUnit.

  • php artisan test (Laravel).

  • JS/TS: Use Jest or Vitest.

  • npm test .

  1. Best Practices
  • Arrangement: Arrange-Act-Assert structure in every test.

  • Naming: it_should_validate_email or test_email_validation .

  • Speed: Unit tests must run in milliseconds. Mock external services (Stripe, DB) if they are slow.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

python-core-idioms

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python-async-concurrency

No summary provided by upstream source.

Repository SourceNeeds Review
General

caddy-modern-config

No summary provided by upstream source.

Repository SourceNeeds Review