pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.06k stars 313 forks source link

[Bug]: --fail-on-risky does not seem to work #1155

Open michaelw85 opened 1 month ago

michaelw85 commented 1 month ago

What Happened

I run my tests with flags --disallow-test-output --fail-on-risky. When a test outputs it becomes risky, I would expect exit code not to be 0.

How to Reproduce

Create a test and add echo 'something'; Run tests using --disallow-test-output --fail-on-risky Result: exit code 0 Expected exit code 1

Sample Repository

No response

Pest Version

2.34.7

PHP Version

8.3.7

Operation System

macOS

Notes

No response