LinuxCommandLibrary

infection

infection

TLDR

Analyze code using the configuration file (or create one if it does not exist)

$ infection
copy


Use a specific number of threads
$ infection --threads [number_of_threads]
copy


Specify a minimum Mutation Score Indicator (MSI)
$ infection --min-msi [percentage]
copy


Specify a minimum covered code MSI
$ infection --min-covered-msi [percentage]
copy


Use a specific test framework (defaults to PHPUnit)
$ infection --test-framework [phpunit|phpspec]
copy


Only mutate lines of code that are covered by tests
$ infection --only-covered
copy


Display the mutation code that has been applied
$ infection --show-mutations
copy


Specify the log verbosity
$ infection --log-verbosity [default|all|none]
copy

Copied to clipboard