by webmobdev · 5y ago · 0 comments
While I understand the burden of accepting and evaluating code from others and the very real possibility of a burn-out due to it, can't test-driven development (or even Behavior-driven development) reduce a lot of this burden?
(Related: How SQLite is tested - https://www.sqlite.org/testing.html ).
For some reason this rule weeds out about 80% of contributions - including almost all low quality PRs. It’s delightful.
At some point the maintainers were like, "yeah, this draft PR looks like it's doing the right thing so let's just merge it without a working behavior test"
If a patch is a bugfix then clearly none of the past tests caught the bug <_<... If the patch is a new feature then it will certainly need new tests to validate its own behavior is correct...
Sure it's nice "automated documentation" but I feel like the reverence it gets is overstated.
Personally, I feel it improves the code quality and readability for others as the tests also help them better understand the functionality of the code within a project.