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..
Hi all... Topic: Demo-shop b2b testing database When i start to test functions connecting to the d
Hi all...
Topic: Demo-shop b2b testing database
When i start to test functions connecting to the database is refused.
What is totally clear, cause testing environment credentials are used.
But the database trying to reach is not created yet.
When is the "testing" databse created or how could i create the testing database?
Thx in advance, Oli
Comments
-
@UP951K4L9 Someone who has the same problem like us!
0 -
I know only to rebuild the project for test environment. i really hate that approach because maybe you need the automated test while developing and dont want to wait 20minutes for the project to rebuild overtime.
0 -
I am already starting my containers in testing mode. But no testing database is created
0 -
Iβm having the same issue, any help would be appreciated. seems like there should be a step or console command somewhere to populate the test database?
0 -
At least some documentation or advice in the docs how to accomplish that, at the best some console command.
0 -
got the same problem
did you find out anything?
also read up the documentation in testing mode and so on, but didn't find any hint on how the test database is createdhow to you rebuild the test env? bootstrap from which deploy.yml? or do you use the install with testing.yml?!
0 -
docker/sdk cli -t vendor/bin/install --recipe=testing
this aborts because it cannot reach the db...
0 -
For the purpose of anybody who sees this, try
docker/sdk console -x -t codecept run -g MyModuleTestGroup
0 -
I don't get it, how will this install the testing db?
0 -
For testing with sprykers b2c DB or one that you have spun up?
0 -
If you want to use another DB to test with you can just use
- Db: dsn: 'mysql:host=localhost;dbname=testdb' user: 'root' password: ''
0 -
Inside the codeception.yml
0 -
But there's some kind of issue using the -c variable in the command. And it has to be run via the cli
0 -
the testing db is never created within testing mode without creating a separate project
0 -
but testing mode tries to connect to a testing db which is not there
0 -
Is there an error message I can look at?
0 -
I'm not sure Ive seen this example although I've so far ran into many more
0 -
sorry I am working with a different project now that does not use the sdk
0 -
Awesome hope its going well!
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