Mutation testing

What it is -:
Mutation testing is a method of software testing, which is used to validate the source code correctness and testing process after small modification. It is used to detect the code errors due to mutation.

Mutation means changes in statement or source code of the program and check it whether previously designed test cases are able to find out the errors. If designed test cases are passed then, there is no any effect of changed and if it is failed then focus on changed source code.

Each mutation (change) is called as version or mutant and it is kept very small, so it is not going to effect on overall objectives of the product.

It can be rejected on the basis of comparing the behavior of changed program against original program.

It is process of complete reviewing and checking correctness of the program.

New test cases can be added after successful of new version execution.

What it is called -:
It is also called as “fault” base testing.

When it is to be done -:
It is always performed after suit of unit testing or small modification in source code, design models, tests, database etc.

To whom it follows -:
It follows “white box” testing.

Tested by -:
It is tested by skilled developer and tester those are having in depth knowledge of system.

Step-by-Step Process -:
1] Verify and Validate existing program
2] Add mutation in terms of value, Decision and statement
3] Catch the defect after changed and correct
4] Test behavior original vs. new version

Example -:
It includes syntactical errors and coupling (integrate) effect error
Original -:
If (K>=S)
Print “Hello”
Print “Hi”
After Mutation -:
If (S<=K)
Print “Hello”
Print “Hi”

1 thought on “Mutation testing”

Leave a Reply