Codeception / robo-paracept

Robo tasks for Codeception tests parallel execution
MIT License
57 stars 59 forks source link

Set logger #14

Closed danijelk closed 8 years ago

danijelk commented 8 years ago

Running latest master of Robo triggers the following error which fails on CI tests.

robo parallel:split

PHP Deprecated: No logger set for Codeception\Task\SplitTestFilesByGroupsTask. Use $this->task(Foo::class) rather than new Foo() in loadTasks to ensure the builder can initialize task the task, or use $this->collectionBuilder()->taskFoo() if creating one task from within another. in vendor/consolidation/robo/src/Common/TaskIO.php on line 43

One quick fix could be to add a $this->setLogger(..) in the run method of split/merge method. Though I'm not sure this can be done simply from the RoboFile.php?