mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 04:17:58 +01:00
infection: add page (#2633)
This commit is contained in:
parent
761c2dc718
commit
359f1bbf8d
1 changed files with 35 additions and 0 deletions
35
pages/common/infection.md
Normal file
35
pages/common/infection.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# infection
|
||||
|
||||
> A mutation testing framework for PHP.
|
||||
|
||||
- Analyse 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}}`
|
Loading…
Reference in a new issue