3 ms·
From [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 the
by onei 5y ago
From [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.