All jobs / AI engineer / AI Coding & Agentic Development

AI engineer interview question · 1–3 years

You asked an assistant to write unit tests for an existing module. It produced forty tests, all green, and coverage jumped.

What do you check before you trust them?

The strongest answer

That they assert the intended behaviour, not just whatever the code does today — I read the assertions, break the code on purpose to see tests fail, and add the edge cases from the spec

Why it works

Exactly — tests generated from the code tend to lock in its current behaviour, bugs included. A test that cannot fail proves nothing.

What a good answer covers

Answers that fall short

Who gets asked this

More AI Coding & Agentic Development questions