Skip to content

How can I show errors, escaped and killed Mutants and syntax errors?? #1564

Closed Answered by maks-rafalko
steevanb asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

  • to output escaped mutants to stdout (your terminal), please use --show-mutations, or just its alias -s
  • to use human readable log file, please use text logger - in infection.json add logs.text
  • information added to text log file is controlled by --log-verbosity

if you will use --log-verbosity=all, it will add logs about killed and errored mutants

The verbosity of the log file, all - this mode will add “Killed mutants” into log file and add additional information, default - normal mode will skip “Killed mutants” section in the log file, none - which will disable logging to files.

so the final solution is

infection.json

{
    "logs": {"text": "infection.log"}
}

and execute Infection with

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maks-rafalko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants