Mutation Testing (What and why)
- Download the git repo
https://github.com/developer-help/mutation-testing
Youtube link https://youtu.be/cDDmnVgdvt0
-
Open project in eclipse/other editor
-
Add the dependency of the plugin in pom
-
Add a test that is not adding any value //For example test without assertion but just covering the line
-
Add a test that is adding value // Test with right assertions
-
Analyse the report generated
-
Identify false positive
-
Remove the unwanted test
-
Analyse report again