Home / Docs / Test Generator
Feature docs

Test Generator

Edge-case tests that answer 'what would you test?'

What it does

Generate an edge-case test suite for any solution: empty inputs, single elements, duplicates, sorted and reverse-sorted data, integer boundaries, and the adversarial cases specific to the algorithm. Each test states what it guards against, so when the interviewer asks 'what would you test?' you have a considered answer instead of 'uh, empty array?'

Configuration

  • {'label': 'Language', 'kind': 'select', 'options': ['Python', 'Java', 'C++', 'JavaScript', 'TypeScript', 'Go', 'Rust']}
  • {'label': 'Test count', 'kind': 'select', 'options': ['5', '10', '15']}
  • {'label': 'Include adversarial cases', 'kind': 'toggle'}

Why it's better

Neither incumbent generates tests; the question 'what would you test?' comes up in most coding rounds, and this feature exists solely to answer it well.

Telemetry

  • Suites generated
  • Tests per suite
  • Edge cases covered

Try it live

Open Test Generator in the workspace →