Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Mutant as killed if Test Framework returns non-zero exit code #1621

Merged
merged 1 commit into from Dec 22, 2021

Conversation

maks-rafalko
Copy link
Member

PHPUnit can return "Tests passed! OK (10 tests, 32 assertions)" output, however return code will be non-zero.

This happens when, for example, symfony/phpunit-bridge is used with SYMFONY_DEPRECATIONS_HELPER=max[self]=0, and it detects outstanding deprecations which fails PHPUnit execution, while all the tests are passing

See #1620 (comment)

Now, when Test Framework exit code is > 100, Mutant will be treated as Errored (retained behavior).

When Test Framework exit code is non-zero, Mutant will be treated as Killed (new behavior), even if from output's point of view tests pass.

PHPUnit can return "Tests passed! OK (10 tests, 32 assertions)" output, however return code will be non-zero.

This happens when, for example, `symfony/phpunit-bridge` is used, and it detects outstanding deprecations which fails PHPUnit execution, while all the tests are passing

See #1620 (comment)

Now, when Test Framework exit code is > 100, Mutant will be treated as `E`rrored (retained behavior).

When Test Framework exit code is non-zero, Mutant will be treated as Killed (new behavior), even if from output's point of view tests pass.
@maks-rafalko maks-rafalko enabled auto-merge (squash) December 22, 2021 05:51
@maks-rafalko maks-rafalko added this to the next milestone Dec 22, 2021
@maks-rafalko maks-rafalko merged commit 30db7f9 into master Dec 22, 2021
@maks-rafalko maks-rafalko deleted the feature/non-zero-to-error branch December 22, 2021 06:09
@maks-rafalko
Copy link
Member Author

thank you, @sanmai

@maks-rafalko maks-rafalko modified the milestones: next, 0.26.0 Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants