Skip to content

Instantly share code, notes, and snippets.

@MarkRedeman
Created January 12, 2016 21:17
Show Gist options
  • Save MarkRedeman/c23401507a1b8089a689 to your computer and use it in GitHub Desktop.
Save MarkRedeman/c23401507a1b8089a689 to your computer and use it in GitHub Desktop.
[Abstract] Mutation Testing in PHP with Humbug

Mutation Testing in PHP with Humbug

Mutation testing is a technique that measures the quality of a test suite and helps you write more robust code. This is done by making small changes (mutations) to our code, which will break our application, and ensuring that there is at least one test that no longer passes.

This talk introduces the concept of mutation testing. We show that by using mutation testing we can find bugs in code which has a 100% code coverage. We will look at a few open source projects and use the padraic/humbug package to analyze their Mutation Score Indicator. Lastly we look at some of the disadvantages of mutation testing, namely performance and false positives and how to overcome them.

@chrisseaton
Copy link

Seems really solid. Not much more I can say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment