News for hackers. Stuff that matters.
Re:Goodbye Microservices: From 100s of problem children to 1... by inetknght on Wednesday July 11, 2018 @10:08AM (#17506992)
Said with less vitriol:

It's not just code coverage that matters. It's the code path selection that matters. If you have a ton of branches and you've evaluated all of them once then yeah you sure might have 100% "coverage". But you have 0% path selection coverage since a single invokation of your API might choose true branch on one statement, false branch on another statement, and a second invokation might choose false branch on the first and true on the second.

While the code was 100% tested, the scenarios were not. What happens if you have true/true or false/false? That's not tested.

There's a term for this but I forgot what it is and don't care to go spelunking to find it.

Re:Goodbye Microservices: From 100s of problem children to 1... by mosheroperandi on Thursday July 12, 2018 @10:35PM (#17520122)
> There's a term for this but I forgot what it is and don't care to go spelunking to find it.

sqlite calls this "branch coverage"

https://www.sqlite.org/testing.html#statement_versus_branch_...

Re:Goodbye Microservices: From 100s of problem children to 1... by piaste on Wednesday July 11, 2018 @11:03AM (#17507459)
> There's a term for this but I forgot what it is and don't care to go spelunking to find it.

Happy path?

Re:Goodbye Microservices: From 100s of problem children to 1... by inetknght on Wednesday July 11, 2018 @11:25AM (#17507637)
Not quite what I meant, but that's another good description