Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path →
The AI-Era QA Engineer.
An AI writes the test script, the selectors, a hundred assertions. So what is QA for? The parts that were always the real job: deciding the test strategy, judging risk to know where testing matters, exploratory testing that finds the bug nobody specified — and a brand-new discipline AI itself created: testing systems that have no single correct answer. A test the AI wrote to pass the code the AI wrote proves nothing. This is a career handbook for becoming the QA engineer who gets more valuable as test code gets cheap — what to lean into, the new stack (reviewing generated tests, strategy, testing AI systems with evals), five ways to work AI-augmented this week, and a 90-day plan.
What gets cheaper, what gets scarce
AI collapses the cost of writing tests and raises the premium on knowing what to test, why, and how to test what has no single right answer. A hundred generated assertions are cheap; the judgment about which failures matter is not. Move your time to the right.
| Getting cheap (AI is good at it) | Getting scarce (the moat) |
|---|---|
| Test scripts, selectors, boilerplate cases | Test strategy — what to test and to what depth |
| Unit-test drafts for a given function | Risk-based judgment — where a bug actually hurts |
| Page objects, fixtures, data setup | Exploratory testing — finding the unspecified bug |
| Translating a manual case to automation | Judging whether a test asserts something meaningful |
| Generating input permutations | Quality advocacy — what "good enough to ship" means |
| — | Testing AI / nondeterministic systems with evals (new) |
The right column is what separated a quality engineer from a script-recorder before AI — and it grew a new row, because AI features created a kind of testing (evals over a probabilistic system) that assertEquals cannot do.
The new QA stack — where to build the moat
Keep the durable core (strategy, risk, exploratory instinct). Then add the review skill and the new discipline the AI era demands.
1 — Review generated tests: do they test, or just restate the code?
The scarce skill is judging test quality. A generated test can pass while asserting nothing meaningful — restating the implementation, mocking away the behavior, or checking that code does what it does rather than what it should. And never trust tests the AI wrote for code the AI wrote; that only certifies the current behavior. Read generated tests for whether they assert real behavior, cover the failure modes that matter (which you decide from risk), and would actually catch a regression. Coverage numbers lie; meaningful assertions do not.
2 — Own strategy and exploratory testing
AI generates cases from a spec; it does not decide what is worth testing, nor does it explore. Risk-based strategy — spending test effort where a failure actually hurts — and exploratory testing that pokes the unhappy path nobody wrote down are exactly what a flood of generated tests still needs on top. The bug that ends up in a postmortem is usually the one no spec described; finding it is human judgment and curiosity the model does not have.
3 — Test AI and nondeterministic systems with evals
This is the high-demand new discipline. AI features have no single correct output, so you replace assertEquals with evals: a representative, versioned case set, a definition of "good" (correct, safe, grounded, on-tone), and a measured pass rate rather than a green check. You also probe failure modes ordinary software lacks — hallucination, prompt injection from untrusted input, bias, unsafe outputs. A QA engineer who can design and run evals for an AI feature is one of the most sought-after testers right now.
Five ways to work AI-augmented this week
Each amplifies your judgment without outsourcing it. The verify line is where your value lives.
1 · Draft tests, then judge whether they mean anything
- Generate from behavior you specify, not from the code:
2 · Turn risk into a test plan
- Prioritize by impact, not by ease:
3 · Design an eval for an AI feature
- Replace assertEquals with a measured bar:
4 · Adversarially probe an AI output
- Attack the failure modes ordinary tests miss:
5 · Explore, with AI taking notes
- Keep the curiosity human; offload the bookkeeping:
The judgment exercise: spot the danger
Three cases where AI-generated testing looks thorough. The skill being tested is the one that pays now.
1. An AI wrote both the function and its tests. All tests pass, coverage is 95%. Sign off?
The core AI-testing trap: a model that writes the tests for its own code produces a self-consistent green suite that proves the code does what it does — including its bugs. High coverage measures lines executed, not behavior verified. Judging whether tests assert intended behavior, derived from risk rather than the implementation, is exactly the QA judgment that is now the job.
2. You're testing an AI summarization feature. You write assertEquals(summary, expected). It fails every run with different text. Your move?
Exact-match assertions do not fit nondeterministic AI output — the feature is working as designed and there is no single right summary. Pinning temperature or substring-matching are brittle hacks that miss quality. The AI-era answer is evals: define good (faithful, complete, concise), run a representative set, and measure the pass rate. That shift from assertion to eval is the new discipline.
3. The AI generates 200 input-permutation tests for a form. Great coverage of the form. Ship confidence high?
Two hundred permutations give deep, cheap coverage of what was specified — and say nothing about the failures nobody wrote down, which is where the shipping bugs live. Quantity of generated tests is not quality of testing. Knowing that exploratory and risk-based testing must cover the unspecified space is the judgment that generated tests cannot replace.
Your role in three years — and a 90-day plan
In three years the title still says QA or SDET, but the work shifts: less hand-writing scripts, more owning strategy, exploratory testing, and the evals that gate AI features. A concrete start:
| Weeks | Do this | Why |
|---|---|---|
| 1–3 | Let AI draft tests from behavior you specify; review each for meaningful assertions, reject self-referential ones | Builds the judge-test-quality skill that is now core |
| 4–6 | Write a risk-based test plan for one feature; do a real exploratory session on it | Sharpens the strategy and curiosity AI cannot supply |
| 7–9 | Design and run an eval for one AI feature — case set, scoring, pass-rate bar | The high-demand new discipline: testing nondeterministic systems |
| 10–12 | Adversarially probe an AI feature for hallucination, injection, and unsafe output | The AI-specific failure modes ordinary QA never had to test |
The through-line: let AI write the scripts fast, and get deeper in strategy, exploration, and evals it cannot own. Do both and the tools make you more valuable.
The picture: an assertion versus an eval
Worked example: reading one eval run, slice by slice
Say you are gating an AI support-reply feature with 200 cases: 120 typical, 50 edge and 30 adversarial (prompt injection, requests it must refuse). The bar, written before the run: at least 85% overall and at least 80% on every slice. Each output is scored correct, grounded and safe, or it fails.
| Run | Typical (120) | Edge (50) | Adversarial (30) | Overall (200) | Verdict |
|---|---|---|---|---|---|
| 1 | 114 = 95% | 38 = 76% | 18 = 60% | 170 = 85% | Overall passes, two slices fail: no ship |
| 2, after fixes | 114 = 95% | 40 = 80% | 26 ≈ 86.7% | 180 = 90% | Every slice clears its bar: ship candidate |
| Margin at 95% | — | — | about ±12 points | about ±5 points | Small slices are noisy |
Run 1 is the classic trap: the headline 85% meets the bar exactly while the adversarial slice, the one that ends up in an incident report, fails 2 cases in 5. Run 2 passes, but read the last row before celebrating. With 200 cases, an 85% rate is only known to about ±5 points, so a 2-point move between runs is noise, not progress. With 30 adversarial cases the margin is about ±12 points, so 86.7% is not clearly above 80%. The honest next step is to grow the adversarial slice, not to argue about the number.
Trade-offs: what each kind of testing costs and buys
Here Time is how fast it gives feedback, and Space is what it costs to build and keep.
| Case | Time | Space | Why |
|---|---|---|---|
| Unit tests | Seconds | Cheap to write, cheap to run | Catch logic regressions; only as good as their assertions. AI drafts them well. |
| Integration tests | Minutes | Need real dependencies or good fakes | Catch the seams between components, where generated code often guesses. |
| End-to-end UI tests | Slowest automated tier | Brittle; selectors and timing break | Keep a few for the critical journeys, not hundreds. |
| Mutation testing | Slow: reruns the suite per mutant | Compute, not people | Shows whether tests would catch a change. The direct check on generated tests. |
| Exploratory session | An hour or two of a person | Your attention | Finds the unspecified bug. Nothing automated replaces it. |
| Eval run | Minutes to hours | Model calls per case, plus labelling | The only way to measure a nondeterministic feature; rerun on every prompt or model change. |
AI has made the cheap rows cheaper still. That is the reason to spend the saved time on the rows it cannot do: deciding what matters, exploring, and judging the outputs.
Common mistakes when testing with and testing AI
- Chasing coverage instead of killing mutants
Coverage counts lines executed, not behaviour checked. Mutation testing flips a
<to<=or deletes a line and asks whether any test fails. A generated suite at high coverage that lets most mutants survive is asserting very little. - Using a model as judge without checking the judge
An LLM grader is a measuring instrument, and an uncalibrated one. Have people label a sample, measure how often the grader agrees with them, and recheck when you change either model.
- Letting eval cases leak into the prompt
Copying failing eval cases into the prompt’s examples makes the score rise without the feature getting better. Keep a held-out set that nobody tunes against.
- Accepting generated UI tests with sleeps
Generated end-to-end tests often wait a fixed number of seconds and select by brittle CSS paths. They pass on your machine and flake in CI. Wait on a condition, and select by role and accessible name.
- Retrying flaky tests until green
A test that fails one run in ten may be telling you about a real race. Automatic retries hide it. Quarantine it, find the cause, and only then put it back in the gate.
Where this shows up in production and interviews
- CI gates for prompts
A prompt edit is a code change. Teams that ship AI features run the eval set in CI on every prompt, model or retrieval change and block the merge if a slice falls below its bar.
- Model upgrades
When a provider releases a new model version, behaviour changes in ways no changelog lists. Rerun the full eval set, slice by slice, before switching, and keep the old model one config flag away.
- Security and red-teaming
The OWASP Top 10 for LLM Applications lists prompt injection first. Adversarial probing for it, and for data leakage and unsafe output, is becoming a standing part of QA for any feature that reads untrusted text.
- QA and SDET interviews
“How would you test a chatbot?” rewards the shift on this page: a case set with slices, a definition of good, a scorer you have checked, a bar set in advance, and adversarial cases, not a list of exact-match assertions.
Quick answers
Will AI replace QA engineers?
No — it automates writing tests and raises the premium on test strategy, risk judgment, exploratory testing, and the new discipline of testing AI systems with evals. A test the AI wrote for its own code proves nothing.
How do I test an AI feature?
With evals, not assertEquals — a representative versioned case set, a definition of good, and a measured pass rate, plus adversarial probing for hallucination, injection, bias, and unsafe output.
Should I let AI write all my tests?
Draft, yes; trust unreviewed, no — and never let it write tests for code it also wrote. Read generated tests for meaningful assertions and coverage of the failure modes that matter.
Where should a skeptical QA engineer start?
Recipe 3 — design one eval for an AI feature (case set, scoring, pass-rate bar). It is the highest-demand new skill and immediately shows why AI testing needs evals, not assertions.
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Handbooks
- The Agentic AI Interview HandbookTwenty topics every senior AI engineer should be able to reason about live — from eval pipelines to reliability patterns for generative systems.Read →
- The Senior AI Engineer Interview Handbook60 questions across architecture, production incidents, agentic systems, RAG, evals, cost, safety, and leadership — what staff-level AI interviewers actually probe for.Read →
- 50 Angular Interview QuestionsA visual handbook covering components, change detection, RxJS, signals, routing, forms, performance, and testing — what interviewers actually probe for in senior Angular roles.Read →
- 50 Python Interview QuestionsFundamentals to advanced: data structures, OOP, iterators & generators, the GIL, asyncio, memory, testing, and the standard library — a visual walk through everything a Python interview touches.Read →
- 51 LLM Evals Interview QuestionsGolden sets, LLM-as-judge, regression testing, offline vs online evals, RAG evals, agent evals, red-teaming, and observability — demystified for interviews and production.Read →
- The Agent Evaluations HandbookA self-contained handbook on evaluating AI agents — theory, interactive widgets, and practical guidance. Trajectory evals, tool-use scoring, LLM-as-judge, observability, and reliability for PMs, engineers, and founders.Read →