4 ms·
I'm really glad to see this, it's one of the major remaining testing tools that I've wanted for golang. The fact that it has so many entries in its 'trophy case
by Taek 11y ago
I'm really glad to see this, it's one of the major remaining testing tools that I've wanted for golang. The fact that it has so many entries in its 'trophy case' is encouraging.
The last thing I'm waiting for is mutation testing. There is this library: https://github.com/StefanSchroeder/Golang-Mutation-testing https://github.com/StefanSchroeder/Golang-Mutation-testing, but it hasn't received a lot of attention yet.
Mutation testing alters your code to verify that your test suite covers all potential simple programming mistakes. For example:
if val < otherVal {
could be mutated to
if val <= otherVal {
If the test suite doesn't fail after this change, it means that the test coverage is missing a potential off-by-one error. Fuzzing is good for directly finding problems using randomized processes, and mutation testing is good for finding shortcomings in your test suite.
- vessenes 11y agoMr. Vyukov is a beast; you should just post an issue on github and politely ask; I bet he'd enjoy implementing.