Closed zerioni closed 1 year ago
Just commenting to add this thread from the Codeception Slack, indicating that this is a missed feature, and suggesting a possible fix: https://codeception.slack.com/archives/C93HPU7NZ/p1663341734485169
@zerioni Could you install "codeception/codeception": "dev-pass-test-result-to-dependent-method as 5.0.99"
and run your real testsuite that uses this feature to check if I haven't missed anything?
@Naktibalda This works a treat! Flew through my dependent tests without a hiccup.
What are you trying to achieve?
I have a test ends with a return value, and a dependent test that need to use that value: this type of setup from phpunit
What do you get instead?
Nothing is passed from the test with the return, the dependent test errors with too few arguments to function on the dependent test
Details
composer show
)Same test runs perfectly when called with PHPUnit directly