News for hackers. Stuff that matters.
Re:The Code Review Pyramid by MoreQARespect on Sunday July 09, 2023 @06:27AM (#36653273)
Unit tests help in a very specific circumstance - when you're testing complex calculations or logical code with simple inputs or outputs.

Some projects have almost zero code like this.

In all other instances what you're saying doesnt hold. When they fail it doesnt necessarily mean anything is wrong and vice versa. It just mirrors a portion of the code. It's a lot of expensive maintenance with no payoff.

In contrast integration tests are usually much more meaningful - they will typically test a real system or user interaction.

They are harder to write well though.

There are no comments on this comment yet.