All chapters

Chapter 3 of 4 · 1 min

Your team today

This chapter is about your team, not about mine. There are no right answers, only what happens today.

When the AI writes the code, three ways teams work today:
Writes the testChecks
A human The test
The AI A human
The AI Nobody

When AI writes code, somebody still decides what correct means. In some teams a human writes the test first. In others the AI writes the tests too and a human reviews them. In others nobody checks.

Damir Majer and three AI models (Claude Opus 5.5, GPT-6.1 Sol and Gemini 3.1 Pro) answered these questions.

Who they are

When AI writes code in your team, who writes the tests?

Think of your own answer first, then compare. Each AI model answered every question five times on 9 October 2026; its name marks its most frequent answer, and the reason quoted below is one it gave for it. People answer what their team does; the models were asked what should happen. Damir chose two answers here.

  • A human, before the code. Chosen by Damir Majer.
  • The AI, and a human reviews them. Chosen by Claude Opus 5.5, GPT-6.1 Sol and Gemini 3.1 Pro.
  • The AI, and nobody checks
  • We write few tests. Chosen by Damir Majer.
  • We do not use AI for code yet

Why they chose it

  • Damir

    A human, before the code · We write few tests

    “A human, before the code, and fewer of them: the tests we write now are the high-level ones.”

  • Claude · 5 of 5 runs

    The AI, and a human reviews them

    “AI can write thorough tests quickly, but a human reviewer should check that they test the intended behavior, not the AI's assumptions.”

  • GPT · 5 of 5 runs

    The AI, and a human reviews them

    “AI can draft tests efficiently, while human review checks that they reflect requirements and catch meaningful failures.”

  • Gemini · 5 of 5 runs

    The AI, and a human reviews them

    “AI can efficiently generate tests, but a human review is essential to verify they correctly capture the desired behavior and edge cases.”

How the models were asked
  • Claude Opus 5.5, in Claude Code

    The AI, and a human reviews them, 5 of 5 runs

  • GPT-6.1 Sol (Medium), in Codex

    The AI, and a human reviews them, 5 of 5 runs

  • Gemini 3.1 Pro (High), in Antigravity

    The AI, and a human reviews them, 5 of 5 runs

Asked on 9 October 2026, five times each, the options shuffled for each run. Five runs are a small sample, the answers depend on the prompt, and the models change. Each model answered through its own tool. Codex and Antigravity add instructions of their own; Antigravity does not report which model answered, and Codex also read a short file of general settings, which says nothing about tests.

The models were asked: “When AI writes code in a team, who should write the tests?”

Not offered to the models: We write few tests and We do not use AI for code yet.

A note from Damir

In 2015 I asked on SAP Community: specialist, generalist, or something else? The question has not gone away.

Next: The sixth step