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

isolate test environment with docker-compose #296

Merged
merged 8 commits into from
Jan 4, 2019
Merged

Conversation

dbarrosop
Copy link
Contributor

@dbarrosop dbarrosop commented Dec 28, 2018

Solves #295

This tries to accomplish a few things:

  1. Isolate completely the testing environment so everybody has the same regardless of if it's local or in travis (pandoc issues anyone? ;) )
  2. Allow orchestrating containers more easily. Right now there is a bash script that starts containers that needs to be instantiated with pytest. With this you can start them and have them running in the background which may allow you to iterate faster.
  3. Avoids issues like Remove the external ping test #293 as we can add local resources and link them. So no more tests pointing to localhost :)
  4. Gets rid of tox which I never liked.

@dbarrosop dbarrosop changed the title WIP isolate test environment with docker-compose Dec 28, 2018
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1101

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 1097: 0.0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1101

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 1097: 0.0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

@coveralls
Copy link

coveralls commented Dec 28, 2018

Pull Request Test Coverage Report for Build 1108

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 1102: 0.0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

@dbarrosop
Copy link
Contributor Author

@ogenstad @dmfigol @ktbyers

This changes slightly the development workflow (I updated the contributing guidelines) but I think it's worth the change as it will lead to less obscure crap going on in travis.

@ogenstad
Copy link
Collaborator

ogenstad commented Dec 29, 2018 via email

@dbarrosop
Copy link
Contributor Author

the assert in this code will only show true/false

assert throws an Assertion error, for instance, the REPL:

>>> assert 1 == 2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

@ogenstad
Copy link
Collaborator

ogenstad commented Dec 30, 2018 via email

@ktbyers
Copy link
Collaborator

ktbyers commented Jan 1, 2019

I tested this in my AWS AMI environment (fedora-based). It was fine. I had to install docker-compose using curl, but everything was pretty straight-forward after that.

+1

@dbarrosop dbarrosop merged commit ec6db61 into develop Jan 4, 2019
@dbarrosop dbarrosop deleted the docker-compose branch August 3, 2019 11:22
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.

4 participants