marathon
marathon copied to clipboard
Set up permissions before running the test
It would be nice to have the ability to specify a set of required permissions that should be granted/revoked before test execution. Permissions can be marked using annotation in the tests.
Probably, it should be implemented as a plugin. So we need to have an entry point for plugins that accepts test annotations and have access to the device on which the test will be executed. Then the plugin can run adb commands to grant/revoke permissions.
Fork provides this feature https://github.com/shazam/fork#runtime-permissions, It would be great to have this feature.