Advantages and Disadvantages of Mutation Testing

Advantages and Disadvantages of Mutation Testing
August 12 12:03 2015 Print This Article

Note: the article was updated in May 2020.


Pros and Cons of Mutation Testing

Mutation testing stands along with classic testing types, for instance, mobile testing, web application testing, or desktop testing. This type of testing is also called fault-based testing. It is performed through generating the insignificantly damaged versions of a program under development. This method has its pros and cons, let’s find out more about them.

What is Mutation Testing: Simple Definition

In a nutshell, the word “mutation“ means changing the structure. Hence, such kind of software product testing involves modifying the source code or penetration of the minor bugs mutants. The inserted errors are too small the basic objectives of the program to be affected. After that, the target program and mutant programs are equally tested. In case if the result is the same, the slightly changed program is missing. If there are differences in it, the defected program still exists.

The process itself involves several parts:

  1. Modified software creating — introducing many versions called mutants
  2. Test cases developing
  3. Completing an original and damaged program
  4. Mutation score comparison

Mutation testing provides help in developing effective tests or in finding weak spots in the test data used for the program.

Types of Mutation Testing

There are several types of mutation testing, each of them has its own mission and usage. Value mutation includes modifying values. As practice shows, a small value and a large value are interchanged.

  • Decision mutation involves changing the logical, arithmetic, and relational operators the defects to be identified.
  • Statement mutation is implemented through the statements altering.

Mutation Testing Pluses:

  • this method enables the entire source code coverage and detecting the parts which are not tested properly;
  • it is possible to detect high-quality bugs, which are problematic to find by usual testing;
  • program mutants are thoroughly tested;
  • testing reveals hidden faults in the source code such as source code ambiguities in the primary stages;
  • it is advantageous to customers as they get a safer and more reliable system.

Mutation Testing Minuses:

  • this process is extremely expensive and time-consuming because all the mutant programs should be generated independently;
  • being complicated to perform, this type of testing should be automated;
  • as this method includes the source code changes, it can t be used for the black box testing;
  • a large number of mutant programs may demand testing against the original test suite.

So, being the most adaptable and the most complete software testing method, mutation testing can be used by software testing company employees. It has an important function of maximum code coverage.

Related Posts:

  • No Related Posts

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles


write a comment

No Comments Yet!

You can be the one to start a conversation.

Add a Comment

Your data will be safe! Your e-mail address will not be published. Also other data will not be shared with third person.
All fields are required.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.