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

Integration tests: choose device to run on #84

Open
Vanuan opened this issue Dec 9, 2012 · 5 comments
Open

Integration tests: choose device to run on #84

Vanuan opened this issue Dec 9, 2012 · 5 comments

Comments

@Vanuan
Copy link

Vanuan commented Dec 9, 2012

Steps to reproduce:

  • connect device with debugging off
  • start emulator (with debugging on)
  • run mvn3 integration-test

Expected behavior:

  • build system allow me to choose which device to use

Actual behavior:

  • scala script (get-local-ip) fails with insufficient permissions for device
@Vanuan
Copy link
Author

Vanuan commented Dec 9, 2012

Sorry, there is a way: -Dandroid.device property.

Still, scala script skips emulator devices. Why's that?

@Vanuan
Copy link
Author

Vanuan commented Dec 10, 2012

BTW, is scala script used only for specifying host's ip? If it is, there's a better way: just use hardcoded 10.0.2.2
Review my pull request regarding Travis, please. #80

@Vanuan
Copy link
Author

Vanuan commented Dec 10, 2012

Oh, I should've read the wiki. So, scala script is used only for testing on real devices. For emulator 10.0.2.2 is used. Sorry about that.

@Vanuan Vanuan closed this as completed Dec 10, 2012
@Vanuan
Copy link
Author

Vanuan commented Dec 12, 2012

For some reason, if I don't specify -Dandroid.device, host ip is my external ip, not 10.0.2.2

@Vanuan Vanuan reopened this Dec 12, 2012
@Vanuan
Copy link
Author

Vanuan commented Dec 12, 2012

Ok, this is because scala script doesn't remove agit-integration-test.properties file

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

No branches or pull requests

1 participant