Jan-Lukas Else

Thoughts of an IT expert

Not enough tests

Published on in 💭 Thoughts
Short link: https://b.jlel.se/s/544

GoBlog’s test coverage is increasing (currently about 41%), but I keep being reminded there is nothing like enough or even too many tests. I still find some stupid bugs that aren’t covered by automatic tests.

A good example of a well-tested software is probably SQLite:

As of version 3.33.0 (2020-08-14), the SQLite library consists of approximately 143.4 KSLOC of C code. (KSLOC means thousands of “Source Lines Of Code” or, in other words, lines of code excluding blank lines and comments.) By comparison, the project has 640 times as much test code and test scripts - 91911.0 KSLOC.

And of course SQLite has “100% branch test coverage in an as-deployed configuration”. That’s still a long way to go for my little blogging software…

Tags: ,

Jan-Lukas Else
Interactions & Comments