Skip to content
mentoor

Judging AI-written tests

For engineers

Telling real tests from ones that pass for the wrong reason, with mutation thinking, honest mocks and tests agents cannot quietly weaken

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

An AI wrote a test that sets a mock to return 42, calls the mock, and asserts it got 42. What is wrong with it?

Choose one answer

Check yourself · 2 of 5

In mutation testing, what does a surviving mutant tell you?

Choose one answer

Check yourself · 3 of 5

Which dependency is the best candidate for a mock in a unit test?

Choose one answer

Check yourself · 4 of 5

An agent was told to get CI green. Which change in its diff is the biggest warning sign?

Choose one answer

Check yourself · 5 of 5

You want an assistant to write tests that can catch a wrong implementation. What should you give it?

Choose one answer

Topics

  1. Tests that pass for the wrong reason4 min read · Tautologies, assertions on the mock, rubber-stamped snapshots and tests that copy the implementation's logic
  2. Mutation thinking: would this test catch a bug4 min read · Changing the code in your head, or with tools like Stryker, PIT or mutmut, to check that some test fails
  3. Over-mocking and fake test doubles5 min read · Mocks that replace the thing under test, drift from the real API or hide integration failures
  4. Agents that weaken tests to go green4 min read · Deleted assertions, skipped tests, loosened expected values and updated snapshots that turn a red build green without a fix
  5. Turning generated tests into real tests5 min read · Asking for behaviour-based cases, edges and failure paths, then checking each assertion against a planted bug

Start here

110 questions · last verified 2026-12