Skip to content

Should syntax errors always be shown in the console output? #1566

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

You must be logged in to vote

Hi,

That's a lot of red X in the console that harden readability and do not bring useful information to me as a user, because those syntax errors were generated by Infection itself and don't prove that my code nor my test suites show some weakness (or maybe I'm wrong?).

as soon as you see X in the terminal, it should mean something is wrong either with your custom Mutator (in the future) or with Infection itself.

Probably, what you see is Infection bug, because Infection must not generate syntax errors due to our tests with linting the code

exec(
sprintf('echo %s | php -l', escapeshellarg($

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@romm
Comment options

Answer selected by maks-rafalko
Comment options

You must be logged in to vote
1 reply
@maks-rafalko
Comment options

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