Advanced patterns: Mock Interviews
In this lesson you will use Test Generator to edge-case tests that answer 'what would you test?'.
What you'll learn
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?'
Hands-on
- Open Test Generator in the workspace.
- Configure it for the Mock Interviews workflow below.
- Run it on your own data and check the telemetry.
Why it matters
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.