You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use redefine printer (may be resolve some problem on php 7.2)
<?phpnamespace common\tests;
/** * Class Report overrides \Codeception\PHPUnit\ResultPrinter\Report constructor * to change default output to STDOUT and prevent some tests from fail when * they can not be executed after headers have been sent. */classReportextends \Codeception\PHPUnit\ResultPrinter\Report
{
/** * Report constructor. * @inheritdoc * @param null $out * @param array $groups * @param array $excludeGroups */publicfunction__construct($out = null, array$groups = [], array$excludeGroups = [])
{
if ($out === null) {
$out = STDOUT;
}
parent::__construct($out, $groups, $excludeGroups);
}
/** * @inheritdoc */publicfunctionflush()
{
if ($this->out !== STDOUT) {
parent::flush();
}
}
}
in yii2-app-advanced...
I set into common config codeception.yml
# global codeception file to run tests from all appsinclude:
- common
- frontend
- backendpaths:
log: console/runtime/logssettings:
colors: truereporters:
report: common\tests\Report
What are you trying to achieve?
I try to use redefine printer (may be resolve some problem on php 7.2)
in yii2-app-advanced...
I set into common config
codeception.yml
I want to use this in included suites...
What do you get instead?
Code of redefine printer newer use.
I try to trace it.
In
Codeception/src/Codeception/Command/Run.php
Line 387 in 75a1f48
config will be load from included suite, i.e. from
backend/codeception.yml
and some strange merged: in
Codeception/src/Codeception/Configuration.php
Lines 168 to 177 in 75a1f48
my definition of
reporters: report:
ignored. Catch default value andin
Codeception/src/Codeception/Configuration.php
Line 183 in 75a1f48
share it global instead reporters from top-level(global) config.
This is correct?
Details
Powered by PHPUnit 6.2.4 by Sebastian Bergmann and contributors.
composer show
)# paste suite config here
The text was updated successfully, but these errors were encountered: