GitHub Actions Codeception Coverage Run Failing — Missing Store Setup (WW)
I am configuring a GitHub Actions workflow to execute Codeception test cases with a coverage report. The command I am using:
vendor/bin/codecept run --coverage-html -c tests/PyzTest/Client/Config
However, the workflow fails with the following error:
In Store.php line 207: Missing setup for store: WW
Details:
The error appears only in the CI (GitHub Actions) environment.
Codeception runs locally without issues.
Answers
-
Good day, @mitkumar.dudani.nagar !
This error means that executable cannot find enough information about the store, used in tests.
Do you use DynamicMultiStore? If so, please make sure that WW store is imported with the data import.
Do you use classical approach? Please make sure that WW store is configured in config/Shared/stores.php
Please let us know if you need further assistance.
0 -
Hi @profuel
I have verified that the WW store is correctly defined inconfig/Shared/stores.php, and my debug step in GitHub Actions confirms that the file is readable and contains the correct configuration. I am not using Dynamic Multi Store.
Here is my yml file, am I missing any steps?0 -
Thank you for sharing this file, but I still cannot help you further.
The code is pretty straightforward - load stores from the stores.php file, and get one by ID.
Could you please confirm that WW store works correctly in the backoffice?
If possible, share anonymised stores.php file as well.
0 -
Yes backoffice is working pretty well, and as I mentioned stores.php file also there and can be retrieved via cat command.
0 -
$this->stores = require APPLICATION_ROOT_DIR . '/config/Shared/stores.php';
and
APPLICATION_ROOT_DIR: ${{ github.workspace }}Do you that this path might be wrong?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random
