Re:What I wish I knew when I became CTO
by senoroink on Tuesday February 13, 2018 @11:31PM
(#16373498)
Why? It's not hard to do if you start a fresh project.
Re:What I wish I knew when I became CTO
by baconomatic on Tuesday February 13, 2018 @11:33PM
(#16373503)
Just because you have coverage doesn't necessarily mean that you have written good tests.
That being said, we do something similar where we require 80% coverage.
Re:What I wish I knew when I became CTO
by tehlike on Wednesday February 14, 2018 @03:54AM
(#16374491)
The difference between 80% coverage and 100% coverage is overrated. 80% is more than sufficient, i'd even go ahead and say 70% is better.
100% goes into "change detecting test" territory. There's also the time aspect: going from 0-70 is not hard, 70-100 is extremely time consuming, and often not worth the effort.
Monitoring is a way more efficient tool at catching issues.
Re:What I wish I knew when I became CTO
by baconomatic on Wednesday February 14, 2018 @08:53AM
(#16375664)
While I agree with 70% is about the sweet spot, it really depends on the tools you're using.
We've found that with using Jest and just doing snapshots you can get to 70% without actually testing any of your others methods, hence the 80% coverage requirement.
This is horrible advice and should never be followed.