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..
Hello all! I am trying to run codecept in my local environment for my own test units, and I get thes
Hello all! I am trying to run codecept in my local environment for my own test units, and I get these errors:
In ConnectionFactory.php line 42:
Unable to open connection
In PdoAdapter.php line 72:
Unable to open PDO connection
In PdoConnection.php line 64:
SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
But I am not accessing DB, and my DB is MySQL (not using that port).
That happens when I run:docker/sdk testing codecept run -c tests/PyzTest/Zed/MyModule/codeception.yml
Comments
-
I just switched yesterday to plain PHPUnit-Tests for real Unit-Tests (some call them also Micro-Tests). We store them in a different folder and we also have a separate step in our CI pipeline to start them. We still have the Codeception tests, but use them only for integration and API tests.
0 -
Try to add
\SprykerTest\Shared\Propel\Helper\ConnectionHelper
to your codeception.yml.0 -
check Testify/_support/Helper/Environment.php APPLICATION_ENV
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 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
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random