Sunday, 9 November 2014

Strengthen your test suite - Mutation Testing

Hey Guys, I found this interesting thing sometime back and was wondering how can somebody be not using this.

So we must be encountered the following situations while Unit Testing our code:
  • Hey there are some more scenarios against which we have to test the method !!!
  • Hey I did not take this scenario into account while unit testing and this results in a production issue.
  • Hey I had 100% code coverage, how can a bug will come?
Myth here is : 100% Code Coverage does not mean 100% Test Scenarios are covered.

The answer to all the above or to avoid such conditions is to use Mutation Testing. A cool testing technique to validate and enhance your test suite.
There are several Mutation Testing frameworks present right now however the most simple and active framework named PIT is a good choice.

Following are some other framework for Mutation Testing:
  • Jester Source-based mutation testing tool for Java
  • Judy Mutation testing tool for Java
  • Jumble Bytecode-based mutation testing tool for Java

Links to go through:

No comments:

Post a Comment