-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Prestashop Flashlight to launch tests #136
Comments
Mh, I think you will suggest me to use the Prestashop sourcecode like this example: However I do not understand why flashlight install phpunit, but use Prestashop production codesource. When I read the doc, if you want to test and develop with Prestashop, you might use docker image or PS flashlight. But how can you test Prestashop without the whole test env set by Prestashop if the image use production code source. |
Flashlight install phpunit, so you can run this in your CI env easily. Any question? |
Im able to run phpunit, that's not my issue. My issue is to run integration test of my module (you can see above). It will run:
|
Hi again, I won't help you building up your own tests, please tell me what you don't understand using PrestaShop Flashlight, what is does not do for you, how it could help. I'm sorry I did not understood your needs right now. |
If you are looking to directly test PrestaShop sources, this is a WIP: #96 |
Hello
Thank you for first awesome docker image that let us able to run an instance of Prestashop in seconds and install our modules for development purposes.
I would also like to use this image to launch my Integration test. However how can I achieve this goal as the Prestashop code source zip used in the image is a production build and does not contain any testing?
I like to practice TDD, DI, IoC etc. And I really enjoy developing 90% of my module without having to test each time by launching the browser, going to admin, login, goto thing, etc.
I show you the simple thing I try to achieve:
My docker compose
in modules/gtrmanager/composer.json
In modules/gtrmanager/tests/Integration/phpunit.xml and bootstrap.php
And my test file
Im getting hard times running this simple code because when running the test Im going into the test context and Prestashop manage to load test config, using test_databasename, etc. However all these things are missing in a production sourcecode.
How can I achieve that?
The text was updated successfully, but these errors were encountered: