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

Use Test\Descriptor instead of TestCase when splitting by test #12

Merged

Conversation

ironsmile
Copy link
Contributor

I was following this guide and decided to split my tests using the second, taskSplitTestsByGroups, method.

This produced the following exception:

$ vendor/bin/robo parallel:split-tests
 [Codeception\Task\SplitTestsByGroupsTask] Processing 14 tests
PHP Fatal error:  Class 'Codeception\TestCase' not found in /<path>/tests/vendor/codeception/robo-paracept/src/SplitTestsByGroups.php on line 86
ERROR: Class 'Codeception\TestCase' not found
in /<path>/tests/vendor/codeception/robo-paracept/src/SplitTestsByGroups.php:86

Codeception version: 2.2.4
robo: 0.7.2
robo-paracept version: dev-master

I believe this change is all that is needed. It does work absolutely fine in my case.

A class Codeception\TestCase does not exist at this point. On the other
hand Codeception\Test\Descriptor does exactly what the lost class used
to do.
@javabudd
Copy link

+1 This fix worked for me as well.

@DavertMik DavertMik merged commit 4a49853 into Codeception:master Oct 22, 2016
@DavertMik
Copy link
Member

Thanks

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.

3 participants