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..
Hey, I am trying to add a testing database to my docker setup. What is the right way to do so? I tri
Comments
-
Do you want to create dedicated store for the testing?
0 -
Not neccessarily, I just want a seperate database for testing.
0 -
There are 2 possible options:
1. Separate store. Should work OOTB. But it will need
• Changing deploy.yml file by adding region, group, endpoints. Also pointing right store indocker:testing:store:
• Copying demo data (in csv files)
• Adding store in config/Shared/stores.php
2. Overriding database only for test mode. Not OOTB. But it can be done by managing of nginx and env files.0 -
Also I see 3 option:
separate deploy.yml file for testing. But it makes impossible to use testing and dev mode at the same time. So docker/sdk boot {file} && docker/sdk up each time you need to switch the mode.0 -
What is the reason you want separate database for testing?
0 -
Thanks! I just assumed that I need a seperate database since the devtest_DE config specifies a “DE_devtest_zed” database 😅
0 -
devtest_DE does not used in docker SDK at all. In docker setup only
config_docker
is used.0 -
Maybe it’s because I’m still on the 201907.0 b2c-demoshop, but the devtest-DE config seems to be read when running codeception commands inside the cli
0 -
For running tests with Docker SDK you need:
docker/sdk testing
-> and thencodecept ...
docker/sdk testing codecept run
0 -
Thats what I am doing, but when I change config values in devtest_DE, for example ZED_DB_DATABASE, it affects the tests.
0 -
I’ll try to setup a clean project using the latest release, maybe I just broke something
0 -
It should not get into devtest environment.
0 -
vendor/spryker/spryker/Bundles/Testify/tests/SprykerTest/Shared/Testify/_support/Helper/Environment.php
Do you have the following code inside?
if (getenv('SPRYKER_TESTING_ENABLED')) { return getenv('APPLICATION_ENV'); }
0 -
I just installed the new release of the b2c-demoshop and both, my old and the new shop, are missing the entire vendor/spryker/spryker directory. However, I have a Environment.php in tests/PyzTest/Shared/Testify/_support/Helper/, but the code you mentioned is not present there.
0 -
My colleague is also missing the directory in his b2b shop
0 -
it seems you need to update testify module to have possibility to run tests in docker.
Use the last one please to check.0 -
composer update spryker/testify
0 -
It seems that does not help. I need time to figure out why that code was missed.
0 -
Wait. I found the file:
tests/SprykerTest/Shared/Testify/_support/Helper/Environment.php
0 -
And code is there. So just update testify
0 -
Exactly, was just about to say that the file is just in another location now. But it wasn’t there before I updated testify, so thanks a lot! 😁
0 -
Thanks for feedback.
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