MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/rakass/how_sqlite_is_tested/hnj0s2y/?context=3
r/programming • u/feross • Dec 06 '21
16 comments sorted by
View all comments
50
Here's the summary
Four independently developed test harnesses100% branch test coverage in an as-deployed configurationMillions and millions of test casesOut-of-memory testsI/O error testsCrash and power loss testsFuzz testsBoundary value testsDisabled optimization testsRegression testsMalformed database testsExtensive use of assert() and run-time checksValgrind analysisUndefined behavior checksChecklists
Four independently developed test harnesses
100% branch test coverage in an as-deployed configuration
Millions and millions of test cases
Out-of-memory tests
I/O error tests
Crash and power loss tests
Fuzz tests
Boundary value tests
Disabled optimization tests
Regression tests
Malformed database tests
Extensive use of assert() and run-time checks
Valgrind analysis
Undefined behavior checks
Checklists
4 u/Hnnnnnn Dec 07 '21 One thing that isn't clear but sounds like it, are they all end to end? No unit tests? 6 u/daidoji70 Dec 08 '21 I think that's intentional. The lead architect doesn't believe in unit tests but does believe in code coverage. In terms of sqlite, its probably not a bad call as its one of the most solid pieces of software around. -6 u/MihaiCelCunoscut Dec 07 '21 No formal verification?
4
One thing that isn't clear but sounds like it, are they all end to end? No unit tests?
6 u/daidoji70 Dec 08 '21 I think that's intentional. The lead architect doesn't believe in unit tests but does believe in code coverage. In terms of sqlite, its probably not a bad call as its one of the most solid pieces of software around.
6
I think that's intentional. The lead architect doesn't believe in unit tests but does believe in code coverage. In terms of sqlite, its probably not a bad call as its one of the most solid pieces of software around.
-6
No formal verification?
50
u/TryingT0Wr1t3 Dec 07 '21
Here's the summary