What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
I'm still trying to get a handle on running tests, they kinda work with the deploy.ci.*.yml but they dont with dev profile. I can't figure out what flag I'm missing. Or even better get them working through PHPStorm
I'm trying to run a single suite and it fails:
ββ/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 refused
I get a similar error. it seems the db isnβt created for some reason. maybe Iβm running the wrong command?
The group notation e.g. codecept run -g Discount
does work π€
some configuration magic still missing to get the stuff working through PHPStorm. Looks like it doesn't see the environment variables hence the above errors