Skip to content

Fix failed step output#6623

Merged
Naktibalda merged 3 commits into
5.0from
fix-failed-step-output
Jan 13, 2023
Merged

Fix failed step output#6623
Naktibalda merged 3 commits into
5.0from
fix-failed-step-output

Conversation

@Naktibalda

@Naktibalda Naktibalda commented Jan 1, 2023

Copy link
Copy Markdown
Member

Fixed #5820 and probably many other reports about incorrect failed step output

The problem with $failedStep = (string)array_shift($this->failedStep); in src/Codeception/Subscriber/Console.php was that all failed steps are added to that array in order of test execution, but errors are printed before failures and order of printing doesn't match order of execution.

@Naktibalda Naktibalda force-pushed the fix-failed-step-output branch from fced048 to 5cbf06f Compare January 2, 2023 07:03
@Naktibalda Naktibalda force-pushed the fix-failed-step-output branch 2 times, most recently from 4399fcc to f35e969 Compare January 2, 2023 07:48
@Naktibalda Naktibalda force-pushed the fix-failed-step-output branch from f35e969 to 906e386 Compare January 2, 2023 07:56
Because older versions can't mock __clone(): void methods
@Naktibalda Naktibalda changed the title WIP: Fix failed step output Fix failed step output Jan 2, 2023
@Naktibalda Naktibalda merged commit dea896f into 5.0 Jan 13, 2023
@Naktibalda Naktibalda deleted the fix-failed-step-output branch January 13, 2023 18:34
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.

Wrong step in in failures when error occurs.

1 participant