Comments (3)
Yes. We have some tests that verify permission flows, for those tests ideally they could opt out of automated permission grants..
As an aside, it would also be nice to clear permissions between tests (not sure if that's being done or not)
from fork.
This is something I wanted to add since a long time!
-
In general l am keen to keep the automatically granted permissions on every test (unless opted out with
autoGrantPermissions=false
). Only when a test is explicitly annotated with one or more permissions to revoke than fork should revoke them for that single test. -
What I am not sure about is how to annotate a test to indicate which permission(s) should be revoked before running it.
An idea could be to hijack the android support annotationRequiresPermission
(https://developer.android.com/reference/android/support/annotation/RequiresPermission.html):
Pro:
That's a well established annotation, there is no need to add a new one in Fork (that would require the client application to import a new annotation...)
Cons:
the semantic of the annotation would be used "inverted" (that could be misleading). So for example a test annotated with@RequiresPermission(allOf = {Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA})
would be executed without such permissions granted.
What do you guys think?
(not sure if that's being done or not)
So far there is no fine tuning or revoking of any permissions: we just auto-grant all permissions when installing the apk.
from fork.
PR : #124
from fork.
Related Issues (20)
- increase time of video recording
- Output unit style test results HOT 1
- Fork doesn't run any instrumented tests
- Failed to remove a trace when retry test in 3.8.1 HOT 2
- Obsoletion warnings when using the Gradle plugin with Android Gradle Plugin 3.5 HOT 2
- Version 3.8.1 is not deployed HOT 1
- Error AGP 3.6.0-beta01 HOT 5
- Ability to select custom APK names HOT 1
- Pass environment variables
- Build failed with cause test reports not found for excluded tests
- Test run is always fail if excludedAnnotation is used HOT 1
- Beautify Failed/Ignored/Crashed test list
- Parallel test running taking longer than usual time.
- Obsolete documentation in README.md HOT 1
- Standalone Fork command with arguments doesn't work
- java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 37 00 HOT 2
- Build error with AGP 4.1.0 HOT 2
- Fork plugin ignores settings
- Update codacy integration HOT 1
- Help: How can I run the standalone command?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fork.