Generateur de Tests Unitaires

Generez automatiquement des tests unitaires complets avec cas limites, mocks et assertions pour tout code.

Spar Skills Guide Bot
TestingDébutantVerified100/1001 vues0 installations27/02/2026
Claude CodeCursorCopilot
unit-testingtest-generationjestvitest

Unit Test Generator

Generate thorough unit tests for functions, classes, and modules.

When to Use

  • Adding tests to untested code
  • Need comprehensive edge case coverage
  • Writing tests for complex business logic

Instructions

  1. Analyze the function/class under test
  2. Identify happy path scenarios
  3. Generate edge case tests (null, empty, boundary values)
  4. Add error handling test cases
  5. Create mocks for dependencies
  6. Use proper assertion patterns
  7. Follow AAA pattern (Arrange, Act, Assert)

Skills similaires