4 ms·
It still is strange there is zero testing of these functions (e.g. that fix doesn’t come with any tests). Because there isn’t any requirement for testing, it a
by ec109685 5y ago
It still is strange there is zero testing of these functions (e.g. that fix doesn’t come with any tests).
Because there isn’t any requirement for testing, it allows these functions to become super complex and harder to see where errors could occur.
- staticassertion 5y agoLinux is extremely optimized for happy path coding.
- pjmlp 5y agoWhy is this strange? I never worked in a project where fixes required tests beyond some QA guy/gal stating "it works, done".
- onei 5y agoFrom [1] > MariaDB includes test cases for all fixed bugs. It's not something I've practiced much myself, but writing a test case to reproduce the bug and then fix the bug seems like a more reasonable form of TDD in my head. I've seen it once when reporting a bug to another team I worked alongside, where I was stress testing a new feature and found said bug. Instead of having to run the stress test, they wrote a unit test to reproduce it at a much smaller scale and then had a much smaller feedback loop to ensure it worked after they fixed it. [1] https://mariadb.com/kb/en/mariadb-vs-mysql-features/ https://mariadb.com/kb/en/mariadb-vs-mysql-features/
- pjmlp 5y agoSure, but that is actually more the exception than the rule.
- jjav 5y agoIn many projects a test case is required which reproduces the bug and then shows that it's fixed.