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

Runner hangs with "File or directory ... set in failed group does not exist" after deleting a failed Cest file #6226

Open
ThomasLandauer opened this issue Jun 17, 2021 · 3 comments

Comments

@ThomasLandauer
Copy link
Member

I ran the entire suite (vendor/bin/codecept run unit,functional) and some tests failed. Then I deleted one of them (i.e. the entire file), and ran the entire suite again, as before. Now I'm getting:

In GroupManager.php line 131:
GroupManager: File or directory /.../DeletedCest.php set in failed group does not exist

It's clear that Codeception needs to save the failed tests somewhere, in order to be able to rerun just the failed. However, when running all, this list should be ignored.

Details

  • Codeception version: codeception/codeception 4.1.21
@Naktibalda
Copy link
Member

Previous issue #5938

@ThomasLandauer
Copy link
Member Author

Sorry for not finding that issue myself. The difference I'm seeing is:

So the question for me is: If I just do run, why is Codeception looking at the failed group at all?
Is everything organized into groups behind the scenes? => If no, would it be possible to raise the error only if there are groups?

Note for myself: The place where Codeception stores the failed tests (for rerun failed) is obviously just _output/failed ;-)

@ggmanuilov
Copy link

Why codeception not removed this file before run group test cases?

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

No branches or pull requests

3 participants