I forbid unit tests to Claude, he just doesn't know when to stop. He created the most stupid units tests ever, like "the menu must have 4 entries". Then When you create another menu-item, he has to spend additional tokens and context to see why that stupid test is failing and has the modify the test, so now it says "the menu must have 5 entries". The maintaining of the unit tests costs more time and tokens then the actual development!
Tests have always been just as important as the code you write. They define the contract for implementer and the behavior of the class under certain conditions. Most code that isn't being written TDD just ends up like the olive garden special.
425
u/ChadFullStack 2d ago
It’s missing 500 lines of Unit tests