-
-
Notifications
You must be signed in to change notification settings - Fork 750
Dockerized test environment #747
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
Dockerized test environment #747
Conversation
test/helper/Nightmare_test.js
Outdated
let should = require('chai').should(); | ||
let I, browser; | ||
let site_url = 'http://127.0.0.1:8000'; | ||
let site_url = 'http://php:8000'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(process.env.SITE_URL || 'http://127.0.0.1:8000');
here as well
Thanks @jploskonka . This is really great initiative. If you make it work with Appium I will adore you ) Also, I'd propose to move docker-compose.yml into tests or rename it to And there should be a flexible and documented way to run exact one helper and one test. As running all of them takes lot of time |
Allow to pass test file path and run only it
64fac63
to
dc82b4f
Compare
3367573
to
140e48d
Compare
Yep, and thanks for your input 🤗. That would be really great to have easy to setup test environment |
docker-compose run test-helpers test/rest docker-compose run test-helpers test/rest/ApiDataFactory_test.js docker-compose run test-helpers test/rest/REST_test.js
f3e33d6
to
43eb1c4
Compare
Nightmare still failing on iframe examples
@DavertMik Another batch of updates, it's getting more interesting :D I have problems with EDIT: Also I noticed that acceptance specs are tagged with |
I didn't work with them for a long time so everything is possible 🙃
I found it only here: Scenario('within on form @WebDriverIO @protractor @nightmare', (I) => { In this case I think |
ad62ba5
to
801a7d3
Compare
- Support passing NODE_VERSION as build arg - Reorder instructions to not reinstall npm packages if package.json doesn't change - Use COPY instead of ADD
- Run unit tests in docker container - Use generic language instead of node
f8332e6
to
d40680f
Compare
fe05da3
to
6422d56
Compare
- Use dockerized tests on travisCI - Share node_modules as volume between containers
6422d56
to
f7331fa
Compare
Almost done :D I still see issues mostly with travisCI integration but I'm not sure if this should be tackled in this PR or some other:
When I started working on this PR I didn't intended to use dockerized tests on travis yet, I did it only to check out how it would work and then couldn't resist going further :D I rolled back |
Thanks! I created an account on Wercker and added you as admin. You should receive invitation. |
ce89ccf
to
393149e
Compare
393149e
to
3a04c01
Compare
I played a bit with Wercker and wasn't able to even start containers. I encountered some strange issues with privileges inside containers and gave up for now. I don't have much time this week to work on it ;) Basically there's a lot of places we can improve this, but I'd like to add next things as separate PRs. Please let me know what do you think is must have to update here so we can get this merged and I can work on CI integration when I have some more time, probably next week :) |
Thanks, let's switch to something new from Wercker |
I found it quite tricky to figure out how to run all codecept tests. I would really love to have it possible to be able to run all tests with one command. Also manually running php server for helpers tests was little bit irritating for me.
I use Docker a lot in development and don't want to install Selenium locally. @DavertMik I would like to get your opinion on that if it's something you'd consider merging and suggesting as simpler way to contribute.
If you like the idea I can cleanup the code and finish it sometime soon. There's still issue with Appium tests (I didn't have time to fit it yet).
Todo: