Skip to content

Update AllureCodeception.php#124

Closed
AtCliffUnderline wants to merge 2 commits into
allure-framework:mainfrom
AtCliffUnderline:patch-1
Closed

Update AllureCodeception.php#124
AtCliffUnderline wants to merge 2 commits into
allure-framework:mainfrom
AtCliffUnderline:patch-1

Conversation

@AtCliffUnderline

@AtCliffUnderline AtCliffUnderline commented Feb 2, 2024

Copy link
Copy Markdown
Contributor

refers to #123

moduleInit method is never called at initialization. Instead, there is _initialize method that is used by other modules in Codeception.

In LifecycleBuilder.php line 87:
                                                                                                                                                   
  [Qameta\Allure\Exception\OutputDirectoryUndefinedException]                                                                                      
  Output directory is not set for Allure. Please call Qameta\Allure\Allure::setOutputDirectory() method before accessing Allure lifecycle object.  
                                                                                                                                                   

Exception trace:
  at /var/www/yclients/vendor/allure-framework/allure-php-commons/src/Internal/LifecycleBuilder.php:87
 Qameta\Allure\Internal\LifecycleBuilder->getOutputDirectory() at /var/www/yclients/vendor/allure-framework/allure-php-commons/src/Internal/LifecycleBuilder.php:80
 Qameta\Allure\Internal\LifecycleBuilder->createResultsWriter() at /var/www/yclients/vendor/allure-framework/allure-php-commons/src/Allure.php:338
 Qameta\Allure\Allure->getResultsWriter() at /var/www/yclients/vendor/allure-framework/allure-php-commons/src/Allure.php:306
 Qameta\Allure\Allure->doGetLifecycle() at /var/www/yclients/vendor/allure-framework/allure-php-commons/src/Allure.php:291
 Qameta\Allure\Allure::getLifecycle() at /var/www/yclients/vendor/allure-framework/allure-codeception/src/AllureCodeception.php:299
 Qameta\Allure\Codeception\AllureCodeception->getTestLifecycle() at /var/www/yclients/vendor/allure-framework/allure-codeception/src/AllureCodeception.php:155
 Qameta\Allure\Codeception\AllureCodeception->suiteBefore() at /var/www/yclients/vendor/symfony/event-dispatcher/EventDispatcher.php:220
 Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at /var/www/yclients/vendor/symfony/event-dispatcher/EventDispatcher.php:56
 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/SuiteManager.php:148
 Codeception\SuiteManager->run() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/Codecept.php:260
 Codeception\Codecept->runSuite() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/Codecept.php:216
 Codeception\Codecept->run() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/Command/Run.php:646
 Codeception\Command\Run->runSuites() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/Command/Run.php:467
 Codeception\Command\Run->execute() at /var/www/yclients/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /var/www/yclients/vendor/symfony/console/Application.php:1078
 Symfony\Component\Console\Application->doRunCommand() at /var/www/yclients/vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at /var/www/yclients/vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at /var/www/yclients/vendor/codeception/codeception/src/Codeception/Application.php:112
 Codeception\Application->run() at /var/www/yclients/vendor/codeception/codeception/app.php:45
 {closure}() at /var/www/yclients/vendor/codeception/codeception/app.php:46
 require() at /var/www/yclients/vendor/codeception/codeception/codecept:7
 include() at /var/www/yclients/bin/codecept:119

Codeception version is 5.0.13

@baev

baev commented May 27, 2024

Copy link
Copy Markdown
Member

fixed by #126

@baev baev closed this May 27, 2024
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