最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - How can I dynamically grant permissions in a Flutter app during integration tests? - Stack Overflow

programmeradmin2浏览0评论

I'm writing integration tests for a Flutter app and need to grant the required permissions for the app. I've found that most solutions involve mocking, which is fine for widget or unit tests. However, for integration tests, I need a way to actually grant the permissions. How can I do this in a Flutter integration test?

I tried using the permission_handler package to request permissions in my integration tests but couldnt find any method to grant permissions

发布评论

评论列表(0)

  1. 暂无评论