Composure

Testbench

Convention-aware testing

Test automation that reads your existing tests before generating anything. Testbench extracts conventions from 2-3 existing test files: import style, mock patterns, assertion style, file structure, setup patterns, naming style, grouping, and data patterns. Generated tests are indistinguishable from hand-written ones.

3 skills

Skills

/testbench:initialize

Test Framework Setup

Detects test framework (Vitest, Jest, Playwright, Cypress, pytest, Go test, Cargo test, RSpec, PHPUnit). Reads conventions. Generates config.

  • Queries Context7 for framework docs
  • Extracts conventions from existing test files automatically
/testbench:generate

Convention-Aware Generation

Generates tests for a single file. Reads config AND existing test files, never generates without context.

  • Categories: happy path → edge cases → error cases → type contracts
  • React: render, content, interactions, conditional rendering, accessibility
  • API routes: successful response, validation, auth, authz, not found
  • Auto-splits if exceeding 150 lines
  • Runs test and fixes up to 3 times before declaring failure
/testbench:run

Test Runner

Runs tests with scope control: all, changed files only, or single-file. Parses output, extracts failures with source context.

  • Supports Vitest/Jest/pytest/Go/Cargo output formats
  • Coverage analysis with Composure graph integration
  • Identifies high-impact untested functions by caller count

Features powered by Testbench

Browse other plugins