mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 14:02:44 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
41
tldr/infection
Normal file
41
tldr/infection
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# infection
|
||||
|
||||
> A mutation testing framework for PHP.
|
||||
> More information: <https://infection.github.io>.
|
||||
|
||||
- Analyze code using the configuration file (or create one if it does not exist):
|
||||
|
||||
`infection`
|
||||
|
||||
- Use a specific number of threads:
|
||||
|
||||
`infection --threads {{number_of_threads}}`
|
||||
|
||||
- Specify a minimum Mutation Score Indicator (MSI):
|
||||
|
||||
`infection --min-msi {{percentage}}`
|
||||
|
||||
- Specify a minimum covered code MSI:
|
||||
|
||||
`infection --min-covered-msi {{percentage}}`
|
||||
|
||||
- Use a specific test framework (defaults to PHPUnit):
|
||||
|
||||
`infection --test-framework {{phpunit|phpspec}}`
|
||||
|
||||
- Only mutate lines of code that are covered by tests:
|
||||
|
||||
`infection --only-covered`
|
||||
|
||||
- Display the mutation code that has been applied:
|
||||
|
||||
`infection --show-mutations`
|
||||
|
||||
- Specify the log verbosity:
|
||||
|
||||
`infection --log-verbosity {{default|all|none}}`
|
||||
Reference in New Issue
Block a user