slug: ai-test-generation
title: "AI-Assisted Test Generation — Using Claude for Coverage"
version: 1.0.0
description: "Use AI to generate tests—prompting strategies, review practices, and combining human judgment with AI speed."
category: quality-assurance
tags: [ai, testing, test-generation, claude, automation, coverage]
difficulty: intermediate

xp:
  read: 15
  walkthrough: 40
  exercise: 25
  quiz: 20
  quiz-perfect-bonus: 10

time:
  quick: 5
  read: 20
  guided: 50

prerequisites: [test-strategy]
related: [ai-pair-programming, prompt-engineering]

triggers:
  - "How can AI help me write tests?"
  - "Can Claude generate unit tests?"
  - "How do I use AI for test coverage?"
  - "What's the best way to prompt AI for tests?"

visuals:
  diagrams: [diagram-mermaid, diagram-flow]
  quiz-types: [quiz-timed-choice, quiz-matching]
  playground: javascript
  slides: true

sources:
  - url: "https://docs.anthropic.com"
    label: "Anthropic Claude Documentation"
    type: docs
