3 ms·
A reviewer in my team is fond of changing some of the code in the PR and running the tests. The expectation is that if the code is changed randomly a test shoul
by loloquwowndueo 5y ago
A reviewer in my team is fond of changing some of the code in the PR and running the tests. The expectation is that if the code is changed randomly a test should always fail. This helps catch untested code paths.
It’s somewhat similar to the practice of automated code fuzzing, only manual and scoped to changes in a particular PR.
- travisjungroth 5y agoThat's mutation testing[1]. For most languages there are tools that can scope the mutations to a diff. [1]https://en.wikipedia.org/wiki/Mutation_testing https://en.wikipedia.org/wiki/Mutation_testing