GitHub Actions Codeception Coverage Run Failing — Missing Store Setup (WW)

mitkumar.dudani.nagar
mitkumar.dudani.nagar Spryker Solution Partner Posts: 10 🧑🏻‍🚀 - Cadet

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

  • profuel
    profuel SSA Sprykee Posts: 106 🪐 - Explorer

    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.

  • mitkumar.dudani.nagar
    mitkumar.dudani.nagar Spryker Solution Partner Posts: 10 🧑🏻‍🚀 - Cadet

    Hi @profuel

    I have verified that the WW store is correctly defined in config/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?

  • profuel
    profuel SSA Sprykee Posts: 106 🪐 - Explorer

    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.

  • mitkumar.dudani.nagar
    mitkumar.dudani.nagar Spryker Solution Partner Posts: 10 🧑🏻‍🚀 - Cadet

    Yes backoffice is working pretty well, and as I mentioned stores.php file also there and can be retrieved via cat command.

  • profuel
    profuel SSA Sprykee Posts: 106 🪐 - Explorer
    $this->stores = require APPLICATION_ROOT_DIR . '/config/Shared/stores.php';
    

    and

              APPLICATION_ROOT_DIR: ${{ github.workspace }}
    

    Do you that this path might be wrong?