Skip to main content
Generate functional tests dynamically using LLM-powered dataset builders. This approach creates diverse, contextually relevant test cases based on your specifications.

Overview

Prompt-based test generation allows you to:
  • Generate diverse tests: Create varied test cases automatically
  • Customize generation: Control test complexity and focus areas
  • Scale testing: Generate large test suites efficiently
  • Adapt to domains: Generate domain-specific tests

How It Works

  1. Define instructions: Specify what kind of tests to generate
  2. Provide examples: Give the LLM examples of good test cases
  3. Generate: LLM creates new test cases based on patterns
  4. Evaluate: Run generated tests against your model

Code Example

Basic Usage


Custom Dataset Builder

Create your own dataset builder for specialized test generation:

Configuration Options


Generation Tips

Write Good Instructions

Provide Diverse Examples


Multi-Turn Conversation Tests

Generate multi-turn conversations: