agit
agit copied to clipboard
Integration tests: choose device to run on
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
Sorry, there is a way: -Dandroid.device property.
Still, scala script skips emulator devices. Why's that?
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
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.
For some reason, if I don't specify -Dandroid.device, host ip is my external ip, not 10.0.2.2
Ok, this is because scala script doesn't remove agit-integration-test.properties file