Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Infection Support docs #43

Merged
merged 3 commits into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ This option allows you to only run a specific list of [grouped tests](/docs/grou

---

Next section: [Laravel Plugin →](/docs/plugins/laravel)
Next section: [Infection Support →](/docs/infection)
1 change: 1 addition & 0 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [Datasets](/docs/datasets)
- [Coverage](/docs/coverage)
- [CLI Options](/docs/cli-options)
- [Infection Support](/docs/infection)
- ## Plugins
- [Laravel](/docs/plugins/laravel)
- [Livewire](/docs/plugins/livewire)
Expand Down
35 changes: 35 additions & 0 deletions infection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Infection Support
description: Integration between Pest and Infection
---

# Mutation Testing with Infection

- [Overview](#overview)

<a name="overview"></a>
## Overview

> [Mutation Testing](https://en.wikipedia.org/wiki/Mutation_testing) is used to design new software tests and evaluate the quality of existing software tests.

[Infection](https://infection.github.io/guide/) is a Mutation Testing library for PHP.

It has out-of-the-box support for Pest, which makes it very easy to start with.

[Install](https://infection.github.io/guide/installation.html) Infection using one of the supported method, for example as a package:

```bash
composer require infection/infection --dev
```

and run it

```bash
vendor/bin/infection --test-framework=pest --show-mutations
```

> **Note**: Required versions: Pest 1.2.0, Infection 0.23.0
nunomaduro marked this conversation as resolved.
Show resolved Hide resolved

---

Next section: [Laravel Plugin →](/docs/plugins/laravel)