Skip to content

the-engineering-coach/012-infection

Repository files navigation

Who Tests the Tests? An Introduction to Mutation Testing with Infection

This repository contains all the code for The Engineering Coach YouTube video, "Who Tests the Tests? An Introduction to Mutation Testing with Infection (PHP)".

In this video, we dive into the world of Mutation Testing with Infection, a powerful PHP framework. This project demonstrates how mutation testing can help you measure the quality of your tests, not just your code coverage.

What You'll Learn

  • The core concept of mutation testing and why it matters.
  • How to use Infection to "mutant test" your code.
  • The difference between a "killed" and "escaped" mutant.
  • How to use the results from Infection to improve your tests.

Watch the Video Tutorial

This video is an excellent resource for anyone who wants to write more confident, bug-proof code and build a truly robust test suite.

👉 Click here to watch the full tutorial!

Episode 012 Mutation Testing with Infection

Getting Started

To run the code and follow along with the video, you'll need PHP, Composer, and either Xdebug or PCOV installed.

  1. Clone the repository:
git clone https://github.com/the-engineering-coach/012-infection
cd 012-infection
  1. Install the dependencies:
composer install
  1. Run Infection:
./vendor/bin/infection

About The Engineering Coach

The Engineering Coach is a YouTube channel dedicated to helping software engineers and engineering managers improve their skills and craft. We provide practical advice and tutorials on topics that matter in the real world of software development.

Let's Connect

For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.

Releases

No releases published

Packages

No packages published