2 ms·
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 al
by MoreQARespect 3y ago
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 situations they suck. 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.