Webception icon indicating copy to clipboard operation
Webception copied to clipboard

When loading tests, check if the test directory exists.

Open elliotboney opened this issue 9 years ago • 2 comments

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.

elliotboney avatar Apr 13 '15 02:04 elliotboney

This also would close #35

elliotboney avatar Apr 13 '15 02:04 elliotboney

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.

Patabugen avatar Aug 22 '16 16:08 Patabugen