Hello adt-dev,
I'm trying to write an integration test for a user registration activity, 
and so as part of the test's set up, I want to create some test accounts on 
the emulator. To do this requires the permission 
android.permission.AUTHENTICATE_ACCOUNTS.

According to the Android Gradle Plugin release notes for version 0.13.0, I 
should be able to supply a manifest for the test app at 
src/androidTest/AndroidManifest.xml, but adding the permission there 
doesn't seem to work. I know the file is being read since adding a syntax 
error causes the build to fail.

I noticed that renaming src/androidTest to src/debug makes the test work if 
I launch the test from Android Studio, but then the tests don't get picked 
up with the connectedAndroidTest task.

I'm using Android Studio version 1.0.2 and Android Gradle Plugin 1.0.0 and 
a regular project layout.

Is merging uses-permission from androidTest/AndroidManifest.xml supposed to 
work?

Thanks


ps seems to be the same problem as described 
here: 
http://stackoverflow.com/questions/26244998/androidmanifest-in-androidtest-directory-being-ignored

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to