I would love it if we had better tools to make testing the tests explicit, line inline "This is what this code shouldn't do and it's a problem if there's no test that could catch it if it does" blocks.
scarface_74•4mo ago
I have always wanted to deploy mutatation testing and experimented with it back in the .Net framework days with a package called NinjaTurtles.
Rust has a tool for mutation testing called cargo-mutants iirc. It's not perfect but it'll find low-hanging fruit
jffhn•4mo ago
When I do functional unit tests, they tend to include the same functional logic as the code to test. What I strive for is then to express it in a different and possibly clearer way, and I see the testing as mutual testing of two implementations, one more easily humanly checkable.
eternityforest•4mo ago
I would love it if we had better tools to make testing the tests explicit, line inline "This is what this code shouldn't do and it's a problem if there's no test that could catch it if it does" blocks.
scarface_74•4mo ago
https://stryker-mutator.io/docs/
01HNNWZ0MV43FF•4mo ago
jffhn•4mo ago