-
Notifications
You must be signed in to change notification settings - Fork 4
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
Launch emu in a process during tests run #86
base: master
Are you sure you want to change the base?
Conversation
well... it doesn't work yet in Travis. Maybe it's something about creating a process in their environment. I will try to find a fix. In the meantime, let me know if you think this is a good idea in general. |
Can't say what goes wrong. Maybe it is an issue with the ip address? See the dockerfile in emu:
I'm a bit worried about the eggs in the |
@davidcaron I'm still in favor for mock tests :) But that does not exclude your As a follow-up of this we could think about a pytest extension. I have opened a ticket for discussion: |
We could have I'm still going to try to make emu work on travis, because I don't see why it shouldn't. |
Did you check the IP address? On travis we are running in container ... https://github.com/bird-house/emu/blob/d8abda60b9840abd56023279c2dd336127f31005/Dockerfile#L28 |
…irdy into launch-emu-in-tests
Debugging travis is really painful... Any idea why here is the link to the latest build: https://travis-ci.org/bird-house/birdy/jobs/463009078 |
@davidcaron I thinks you are missing the
The |
@davidcaron there was anther issue with the pywps conda package ... version 4.1.23 didn't include the I have made a new release and conda package for emu: 0.9.1. |
Thank you for the emu release. I think it's possible there could be something wrong with the eggshell release on conda... Here are the files that are installed:
Also, maybe the requirement for emu should be |
You may also try this setup in a local docker container ... that gets closer to the travis environment. Travis is using ubuntu/trusty (14.04?):
Not sure if the travis containers are available for download. |
Just chiming in that Ubuntu 16.04 ( |
I think it is worthwhile to pursue this objective and I like @davidcaron 's approach. It lets us tag the version of emu birdy should be compatible with so we can keep them both in sync, and avoids duplication inherent in mock objects. |
I think I will have some time to check this soon... I started looking at running a local travis docker image for faster debugging with travis. I think it will help a lot in this case. |
Overview
Related to #67
So at the beginning of the test run, a
Process
is started in the same way as if we would callemu start
. And it's terminated at the end of the test run.I think this would allow running the tests on travis, but I haven't tested it.
I'm open to suggestions...