From 359f1bbf8d5487cb14453ad3793811a32a5dd052 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Sat, 22 Dec 2018 12:11:14 +0000 Subject: [PATCH] infection: add page (#2633) --- pages/common/infection.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/common/infection.md diff --git a/pages/common/infection.md b/pages/common/infection.md new file mode 100644 index 000000000..00b994cfa --- /dev/null +++ b/pages/common/infection.md @@ -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}}`