Skip to content

oscmarb/mutation-testing-example

Repository files navigation

Mutation testing example

Example to execute mutation tests.

Follow the steps in the Setup section to be able to execute the tests. After running Infection, you will have a report available in infection.html.

Remove the test and try to kill all mutants!

Setup

Requirements

  • Docker

Instructions

Follow the steps below to set up the environment that allows you to modify and test:

# Clone the project (or fork it)
$ git clone git@github.com:oscmarb/mutation-testing-example.git

# Build docker image and install dependencies
$ make

# Run test suite to verify code runs as expected
$ make phpunit

# Run infection - tool to run mutation tests
$ make infection

Makefile contains more commands, you can use make help to list them.

Social

Follow @oscmarb on Twitter.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published