rough-agency-88294
12/21/2022, 7:54 AMrough-agency-88294
12/21/2022, 8:18 AM╭─/data | Store: FI | Env: docker.dev | Debug: (.) | Testing: (X)
╰─$ codecept run -c tests/PyzTest/Zed/Product
Codeception PHP Testing Framework v4.1.22
Powered by PHPUnit 9.5.9 by Sebastian Bergmann and contributors.
PyzTest\Zed\Product.Business Tests (6) ----------------------------------------------------------------------------------------------------------------------------------------------------
E ProductAbstractManagerTest: Create product abstract should create product abstract and trigger plugins
E ProductAbstractManagerTest: Create product abstract should create product abstract and trigger plugins (0.11s)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In ConnectionFactory.php line 42:
Unable to open connection
In PdoAdapter.php line 82:
Unable to open PDO connection
In PdoConnection.php line 82:
SQLSTATE[HY000] [2002] Connection refusedgreen-dinner-62699
12/21/2022, 9:59 AMrough-agency-88294
12/21/2022, 10:21 AMcodecept run -g Discount does work 🤔rough-agency-88294
12/21/2022, 2:14 PMrough-agency-88294
12/22/2022, 10:29 AM./docker/deployment/default/env/cli/* ). Adding them to the test execution run environment works, although you need to set the db host to something it can resolve (like 172.17.0.1) and tweak the SPRYKER_BROKER_CONNECTIONS variable to make sure it resolves
codeception also supports reading env files directly, but sadly it does not support getenv which is used all over the place. This could be hacked to make work though.