Skip to content
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

Run unittests in docker container #520

Closed
wants to merge 1 commit into from

Conversation

avishayp
Copy link

why

I was not able to run tox tests on mac. I assume this is fixable, but running tests in a container gives a more predictable environment.

what

  • Added test service to docker-compose.yml that runs the unittests.
  • Added note in README.md

@avishayp avishayp mentioned this pull request Oct 28, 2018
Copy link
Contributor

@javabrett javabrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having a Compose service to run the tests, why not run them on image-build? I don't see the advantage in having a Compose service to run the tests at container start-time ... isn't this just retesting the same code repeatedly unless the image is rebuilt in the interim, and so wouldn't it be better to test at that time?

@@ -7,10 +7,18 @@ A [Kenneth Reitz](http://kennethreitz.org/bitcoin) Project.

Run locally:
```sh
docker pull kennethreitz/httpbin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this deleted? It could result in a stale/cached image.

@avishayp
Copy link
Author

Closing as it solves my problems but not necessarily useful for anyone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants