Mutation and Property-Based Tests
Learn what mutation and property-based tests are.
We'll cover the following...
There are several software testing techniques, some of which we discussed earlier. Let’s now discuss mutation and property-based testing techniques.
Mutation tests
How do you know if your tests validate your logic, or are the problems of the main code and test code just luckily matched?
Mutation testing is a technique used to test the effectiveness of a set of test cases in finding defects in a piece of software. It works by introducing small, intentional changes (called mutations) to the software being tested and then running the test cases to see if they can detect the change. The goal of mutation testing is to ensure that the test cases are robust and can detect any changes that might indicate a defect in the software.
To perform mutation testing, a ...