agit icon indicating copy to clipboard operation
agit copied to clipboard

Integration tests: choose device to run on

Open Vanuan opened this issue 12 years ago • 5 comments
trafficstars

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 avatar Dec 09 '12 12:12 Vanuan

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

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

Vanuan avatar Dec 09 '12 12:12 Vanuan

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 avatar Dec 10 '12 12:12 Vanuan

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 avatar Dec 10 '12 14:12 Vanuan

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

Vanuan avatar Dec 12 '12 01:12 Vanuan

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

Vanuan avatar Dec 12 '12 01:12 Vanuan