This gets into different schools of unit test development.

Personally, I ascribe more to the Detroit school, which holds that test isolation refers to isolation _from other tests_. I try to write tests that treat the system under test like a black box. All I care about are the inputs and outputs of the system's public API. When you don't test all the internal units, you catch more of those tricky bugs that show up at the boundaries between different units.

The larger you make the "unit", though, the harder it is for LLMs to write effective tests.

Reply to this note

Please Login to reply.

Discussion

No replies yet.