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

Docker based Integration Tests #22

Open
AlexKorovyansky opened this issue Aug 10, 2014 · 2 comments
Open

Docker based Integration Tests #22

AlexKorovyansky opened this issue Aug 10, 2014 · 2 comments
Assignees
Milestone

Comments

@AlexKorovyansky
Copy link

Implement several docker containers: one for Android app itself, second for emulation of remote manifest storage and static files providers, third for GCM, and so on.

Test environment should has zero dependency from external world for all features under test.

Use Espresso and/or UiAutomation for automation of user actions.

@AlexKorovyansky AlexKorovyansky added this to the August milestone Aug 10, 2014
@AlexKorovyansky AlexKorovyansky self-assigned this Aug 10, 2014
@AlexKorovyansky
Copy link
Author

At the end of this video @shykes briefly describes idea of properly usage Docker for faking remote services (on example of Twitter API).

Also the talk is very useful for understanding of Docker basics.

AlexKorovyansky added a commit that referenced this issue Aug 11, 2014
…ration Tests

* gdgomsk/devfest-app-tests-fakeserver:base - Based on Ubuntu 14.04, install binary dependencies and exposes 8081 port;
* gdgomsk/devfest-app-tests-fakeserver:v1 - Use lighttpd to server static files. Setup lighttpd config, as well as json manifest and major dependend files. Manifest.json points to tests_data_v1.json, which contain fake data, which are pretty for usage and checking during integration tests;
AlexKorovyansky added a commit that referenced this issue Aug 11, 2014
…ration Tests

* gdgomsk/devfest-app-tests-fakeserver:base - Based on Ubuntu 14.04, install binary dependencies and exposes 8081 port;
* gdgomsk/devfest-app-tests-fakeserver:v1 - Use lighttpd to server static files. Setup lighttpd config, as well as json manifest and major dependend files. Manifest.json points to tests_data_v1.json, which contain fake data, which are pretty for usage and checking during integration tests;
@AlexKorovyansky
Copy link
Author

Spent about 12 hours by learning Docker and playing with it. As I can see it's brilliant and effective solution for our case!

I already made image for run Fake Test Server, that's serving static files around manifest.json.

Steps to do:

  • Make image for running android app inside container
  • Configure connection of server and android app containers during test session
  • Write some tests
  • Run tests and check that docker environment is working correclty
  • Upload images to Docker Hub

AlexKorovyansky added a commit that referenced this issue Oct 9, 2014
…ration Tests

* gdgomsk/devfest-app-tests-fakeserver:base - Based on Ubuntu 14.04, install binary dependencies and exposes 8081 port;
* gdgomsk/devfest-app-tests-fakeserver:v1 - Use lighttpd to server static files. Setup lighttpd config, as well as json manifest and major dependend files. Manifest.json points to tests_data_v1.json, which contain fake data, which are pretty for usage and checking during integration tests;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant