uncovered Mutants
#1715
-
PHPUnit shows a test coverage of 100% in my tests, but infection shows 3 uncovered Mutants. Is there an option to show these mutants? Run vendor/bin/phpunit -c phpunit.xml --verbose --coverage-clover=.build/coverage/clover.xml --coverage-text --coverage-xml=.build/coverage/coverage-xml --log-junit=.build/coverage/phpunit.junit.xml
PHPUnit 9.5.21 #StandWithUkraine
Runtime: PHP 8.1.8 with Xdebug 3.1.4
Configuration: phpunit.xml
............. 13 / 13 (100%)
Time: 00:00.132, Memory: 16.00 MB
OK (13 tests, 7 assertions)
Generating code coverage report in Clover XML format ... done [00:00.003]
Generating code coverage report in HTML format ... done [00:00.013]
Code Coverage Report:
2022-08-05 13:36:39
Summary:
Classes: 100.00% (3/3)
Methods: 100.00% (3/3)
Lines: 100.00% (32/32)
Mimmi20\Detector\ConfigProvider
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 1/ 1)
Mimmi20\Detector\DeviceDetectorFactory
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 29/ 29)
Mimmi20\Detector\Module
Methods: 100.00% ( 1/ 1) Lines: 100.00% ( 2/ 2)
Generating code coverage report in PHPUnit XML format ... done [00:00.016]
Run infection -s --min-covered-msi=84 --min-msi=84 --coverage=.build/coverage --logger-github --log-verbosity=all --debug
____ ____ __ _
/ _/___ / __/__ _____/ /_(_)___ ____
/ // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
_/ // / / / __/ __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/ \___/\___/\__/_/\____/_/ /_/
#StandWithUkraine
Infection - PHP Mutation Testing Framework version 0.26.13
Running initial test suite...
PHPUnit version: 9.5.21
.: killed, M: escaped, U: uncovered, E: fatal error, X: syntax error, T: timed out, S: skipped, I: ignored
Generate mutants...
Processing source code files: 0
UUU..M.M.M..M............
Escaped mutants:
================
... |
Beta Was this translation helpful? Give feedback.
Answered by
sidz
Aug 5, 2022
Replies: 1 comment 7 replies
-
Hi @mimmi20. you can find all mutation in the log file (if log is enabled) or you can use --show-mutations option to see all of them as part of console output. The full set of available options you can find here: https://infection.github.io/guide/command-line-options.html#show-mutations-or-s |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
mimmi20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mimmi20.
you can find all mutation in the log file (if log is enabled) or you can use --show-mutations option to see all of them as part of console output.
The full set of available options you can find here: https://infection.github.io/guide/command-line-options.html#show-mutations-or-s