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, more questions! ๐โโ๏ธ In the last module working with the docker container setti
Hey, more questions! ๐โโ๏ธ
In the last module working with the docker container setting up codeception for TDD
. I'm about halfway through and I've run some of commands out of the container and some directly from local vendor based on what seemed to make sense.
Basically any command that involved console
I ran from the container the only one I didn't run from the container was vendor/bin/codecept build -c tests/PyzTest/Zed/StringReverser
then I got to #3 and ran vendor/bin/codecept run -c tests/PyzTest/Zed/StringReverser
. Output is bellow.
Also ran docker/sdk console code:test
Output also below.
Might be missing something obvious here, still new to the stack although the concepts are familiar. I'll be back on this tomorrow morning. โฎ Oh and I should mention, I'm in Missoula Montana, rightttt here: 46.85867705975933, -114.01990097447201 UTC-7 ๐
Comments
-
Hi Edward,
You need to be running in test mode when you do test related stuff. This can be achieved by prefixing every console or cli command with the word testing, like so:
docker/sdk testing console
This is how I run tests:
docker/sdk testing condecept run -x Presentation -v --steps
0 -
๐ฏ
0 -
Awesome thanks peeps... I'll give a go after standup. Is this documented somewhere? it makes sense conceptually but is not immediately apparent from current b2c docs, bootcamp docs/video or spryker shop docs. Happy to open an issue and throw a PR at it as well. โฎ
0 -
Started from the top with the new methodology
- Step 2 ran
docker/sdk testing codecept build -c tests/PyzTest/Zed/StringReverser
- Step 3 ran
docker/sdk testing console transfer:generate
&&docker/sdk testing console transfer:databuilder:generate
thendocker/sdk testing codecept run -c tests/PyzTest/Zed/StringReverser
This looks like a pathing error:
It's looking in /data and the fact that is appending the relative path is weird... Like it's not resolving?
Rebuild the data and containers and started over...
Is this a problem with syncing again?0 - Step 2 ran
-
Do I need to run clean on the containers before starting over with testing?
0 -
[2021-01-14 11:08:04 -0700] Sync Log: [BGN] Copying src/Generated/Shared/DataBuilder/StorageProductBuilder.php from /app_sync to /host_sync [2021-01-14 11:08:04 -0700] Sync Log: [END] Copying src/Generated/Shared/DataBuilder/StorageProductBuilder.php [2021-01-14 11:08:04 -0700] Sync Log: [BGN] Copying src/Generated/Shared/DataBuilder/StoreWithCurrencyBuilder.php from /app_sync to /host_sync [2021-01-14 11:08:04 -0700] Sync Log: [END] Copying src/Generated/Shared/DataBuilder/StoreWithCurrencyBuilder.php [2021-01-14 11:08:04 -0700] Sync Log: [BGN] Copying src/Generated/Shared/DataBuilder/StringSortMapBuilder.php from /app_sync to /host_sync [2021-01-14 11:08:04 -0700] Sync Log: [END] Copying src/Generated/Shared/DataBuilder/StringSortMapBuilder.php [2021-01-14 11:08:04 -0700] Sync Log: [BGN] Copying src/Generated/Shared/DataBuilder/WishlistPaginationBuilder.php from /app_sync to /host_sync [2021-01-14 11:08:04 -0700] Sync Log: [END] Copying src/Generated/Shared/DataBuilder/WishlistPaginationBuilder.php [2021-01-14 11:08:04 -0700] Sync Log: UNISON 2.51.2 (OCAML 4.06.1) finished propagating changes at 11:08:04.22 on 14 Jan 2021 [2021-01-14 11:08:04 -0700] Sync Log: Synchronization complete at 11:08:04 (10 items transferred, 0 skipped, 0 failed)
don't see any fails in the sync logs
0 -
Gonna run a hard reset
0 -
alright same error, going to take a break and then setup my linux I think this is a pathing problem in the testing container with unison, I'm down to
sshing
into the testing container and adding generated files... that doesn't seem right0 -
this might be one for @ULYHPR789 (who might already be off today)
0 -
cool, I'll see if there is some input next time the sun reaches out that way. I got past the Business Module not existing error by just making a dir in the container at
/data/tests/PyzTest/Zed/StringReverser/
. Not sure if that's the best method Wonder if maybe the generate command doesn't work quite the same way in the testing container0 -
I believe something about syncing is wrong here. You ran all the required commands but it obviously hasn't created the necessary directorys and files...
0 -
Yeh that's kind of the conclusion I came to as well, I did see an error about zand configuration, tried a fresh install on my Linux machine for both the b2C repo and docker repo and the problem persists. I'm thinking this might be a question for @ULYHPR789 Any thoughts here?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 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
- 25 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