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

When loading tests, check if the test directory exists. #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

When loading tests, check if the test directory exists. #42

wants to merge 3 commits into from

Conversation

elliotboney
Copy link

This prevents an uncaught exception if you have a test type in one site, and not another.

As an example, in Site #A, a user has an "acceptance" suite that they don't have in Site #B. When Codeception loadTests() is called, it iterates through the 'tests' array in config, in each site directory, and crashes if the directory doesn't exist.

Let me know if this needs more clarification.

…ncaught exception if you have a test type in one site, and not another.
@elliotboney
Copy link
Author

This also would close #35

@Patabugen
Copy link
Collaborator

This is a great PR which I'd love to merge - but it's got unrelated fixes/changes involved.

Could you:
git checkout -b check_directory_exists jayhealey/master && git push origin check_directory_exists (note tested but should work!)

so there's a branch containing only that fix, I can then merge the pull request.

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.

2 participants