allure-framework / allure-kotlin

Allure integrations for test frameworks targeting Kotlin and Java with 1.6 source compatibility.
Apache License 2.0
57 stars 21 forks source link

feat(android): write results to app data storage #65

Closed Malinskiy closed 2 years ago

Malinskiy commented 3 years ago

Android users of allure are currently required to grant test application permissions for external storage. This is far from ideal since it will be hard to catch bugs on a tested version of the app that work with storage, see https://github.com/MarathonLabs/marathon/issues/570 for additional user feedback about this limitation.

This PR changes the default behaviour of allure to work without adding any external storage permissions whatsoever and utilizes the internal application storage that is located at /data/data/com.package/. The results are then available at /data/data/com.package/files/allure-results/.

Unfortunately, this folder is not readily accessible via adb pull, I've updated the docs with the instructions on how to pull the result out of the device

Checklist

Relates to https://github.com/MarathonLabs/marathon/pull/588