AI-Native Test Case Generation, Straight From Your Documentation

SPECTRA reads your product docs, generates versioned Markdown test cases, verifies every step with an independent critic, and executes them through a deterministic state machine.

dotnet tool install -g Spectra.CLI && spectra init Apache 2.0 · .NET 8.0+ · Works With Claude Code
  • TC-101 GROUNDED
    Guest checkout with valid card
  • TC-102 GROUNDED
    Card number at max length
  • TC-103 GROUNDED
    Expired card is declined
  • TC-104 REJECTED
    Coupon SAVE50 applies
  • TC-105 GROUNDED
    VAT shown for EU address
MODEL-AGNOSTIC · RUNS IN YOUR AGENT
  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex CLI
  • Gemini CLI

The Full Spectrum of Test Activities

Documentation goes in like white light and comes out as five stages. Each band of the logo is one of them. Nothing in the workflow is left dark.

  1. 01

    Index

    spectra init scaffolds config, skills and the critic agent in your repo; then docs are indexed and MUST/SHOULD/MAY criteria extracted.

  2. 02

    Generate

    Six ISTQB techniques turn behaviors into Markdown test cases.

  3. 03

    Verify

    An independent critic rejects steps it cannot ground in the docs.

  4. 04

    Execute

    Deterministic state machine with pause, resume and crash recovery.

  5. 05

    Cover

    Documentation, criteria and automation coverage in one dashboard.

Reads Your Documentation, Writes Your Test Cases

Point SPECTRA at your docs. It builds an incremental index, extracts MUST/SHOULD/MAY acceptance criteria and applies six ISTQB techniques, so suites cover boundaries and negative paths, not just the happy path.

  • Equivalence Partitioning, Boundary Values, Decision Tables

  • State Transitions, Error Guessing, Use Cases

  • Suggestions for uncovered areas and undocumented behaviors

spectra docs index 42 documents · 318 criteria
  • features/authentication.md 14
  • features/checkout.md 22
  • features/user-profile.md 9
  • api/endpoints.md 31
  • MUST Card expiry is validated before payment
  • MUST Order total includes VAT for EU addresses
  • SHOULD Coupon field accepts up to 20 characters
  • MAY Customer can save the card for later
ISTQB techniques EPBVADTSTEGUC
spectra-critic TC-104 · checkout
  • Grounded Navigate to /checkout with one item in the cart checkout.md §2
  • Grounded Enter card number 4111 1111 1111 1111 payment.md §1
  • × Apply coupon code SAVE50 Not found in source docs
  • Grounded Verify total includes 20% VAT pricing.md §4
  • Grounded Click "Place order" and see confirmation checkout.md §5
4 grounded1 rejectedmodel: independent critic

Every Step Grounded by an Independent Critic

A second model checks each generated step against the source documentation. Anything it can't trace back, such as an invented coupon code or a field that doesn't exist, is rejected before it reaches your suite.

Test Cases as Markdown, Versioned Next to Your Code

Plain Markdown with YAML frontmatter. Reviewed in pull requests, diffed in Git, linked to the doc section and criteria they came from. When a doc changes, the affected test cases are flagged.

Because the test cases live in the repo, they become part of your AI harness: coding agents read them as the executable spec, so AI-first development has a definition of done it can check against.

No database. No vendor lock-in.

test-cases/checkout/TC-104.md
---
id: TC-104
title: Checkout rejects an expired card
priority: high
technique: boundary-value-analysis
source: docs/features/checkout.md#payment
criteria: [AC-CHECKOUT-07]
automated_by: tests/Checkout/ExpiredCardTests.cs
---

## Steps
1. Open checkout with one item in the cart
2. Enter card expiry 01/2024
3. Click "Place order"

## Expected
- Payment is declined with "Card expired"
127.0.0.1:5173 · spectra run console
Suite: checkout7 / 12
TC-103 Expired card is declined
  1. Open checkout with one item in the cart
  2. Enter card expiry 01/2024
  3. Click "Place order"
Expected: payment declined with "Card expired"
PASS FAIL BLOCKED

Deterministic Execution With a Local Run Console

Ask the agent to run a suite. SPECTRA starts a durable run, opens a local web console and you record PASS, FAIL or BLOCKED with comments and screenshots. Pause, resume, crash: the state survives.

  • Durable SQLite run state with crash recovery

  • JSON, Markdown and HTML reports

  • Notifications through the Teams and Slack MCP servers

Three-Dimensional Coverage, One Dashboard

See which documents have tests, which acceptance criteria are covered and which test cases are automated. A static HTML dashboard you can deploy anywhere. Gate your CI on it with JSON output.

spectra dashboard --output ./site
COVERAGEcheckout · 42 docs · 318 criteria
Documentation 94%
Documents with linked test cases
Acceptance Criteria 81%
MUST/SHOULD criteria with at least one test
Automation 37%
Test cases backed by automation code

See SPECTRA in Action

The Windows Calculator docs, end to end: analyzed, generated with Testimize boundaries, verified by the critic, executed in the console, automated by the BELLATRIX Agent and traced on a live coverage dashboard.

From docs SPECTRA logo and headline; a Calculator doc is scanned and test cases come out the other side of the spectrum. Free and open source.

Why SPECTRA?

Manual ApproachWith SPECTRA
Write test cases in spreadsheets or Jira
AI generates them from your docs
Test cases drift as docs change
Doc changes auto-flag outdated test cases
No systematic boundary or edge coverage
6 ISTQB techniques applied automatically
Coverage gaps invisible until bugs ship
Three-dimensional coverage dashboard
Subjective test case reviews
Dual-model grounding verification
Locked into test management tools
Markdown files versioned in Git

From Zero to First Suite in Five Commands

No API keys, no separate AI provider. Generation runs inside your own Claude Code session. The CLI handles indexing, validation and coverage.

dotnet tool install -g Spectra.CLI
spectra init        # config, skills, critic agent
spectra docs index
# In Claude Code: "Generate test cases for checkout"
spectra validate
spectra ai analyze --coverage

Rolling SPECTRA Out Across Your QA Team?

We built it. We can help you set up generation profiles, coverage gates and execution in your pipeline.