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.
- TC-101 GROUNDEDGuest checkout with valid card
- TC-102 GROUNDEDCard number at max length
- TC-103 GROUNDEDExpired card is declined
- TC-104 REJECTEDCoupon SAVE50 applies
- TC-105 GROUNDEDVAT shown for EU address
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.
- 01
Index
spectra init scaffolds config, skills and the critic agent in your repo; then docs are indexed and MUST/SHOULD/MAY criteria extracted.
- 02
Generate
Six ISTQB techniques turn behaviors into Markdown test cases.
- 03
Verify
An independent critic rejects steps it cannot ground in the docs.
- 04
Execute
Deterministic state machine with pause, resume and crash recovery.
- 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
-
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
-
Navigate to /checkout with one item in the cart checkout.md §2
-
Enter card number 4111 1111 1111 1111 payment.md §1
- × Apply coupon code SAVE50 Not found in source docs
-
Verify total includes 20% VAT pricing.md §4
-
Click "Place order" and see confirmation checkout.md §5
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.
---
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" - Open checkout with one item in the cart
- Enter card expiry 01/2024
- Click "Place order"
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 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 Approach | With SPECTRA |
|---|---|
| Write test cases in spreadsheets or Jira | |
| Test cases drift as docs change | |
| No systematic boundary or edge coverage | |
| Coverage gaps invisible until bugs ship | |
| Subjective test case reviews | |
| Locked into test management tools |
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 Closing the Loop Between Documentation and Quality
BELLATRIX automates execution. Testimize optimizes test data. SPECTRA generates and maintains the test cases themselves.
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.