ResultsDirectory in mobile temporary cache path
Hi there. I've tried to generate Allure results in tests, that using Unity Test Framework, and run into issue with saving results on mobile devices - as example all results write into data/user/0/com.UnityTestRunner.UnityTestRunner/cache/allure-results folder. As a temporary solution I realized simple copy result files in persistent folder /sdcard/Android/data/com.UnityTestRunner.UnityTestRunner/files.
Is there solution to set this directory not using hardcoded path in allureConfig.json? Any advice? On Android platform it may be a crutch solution, but for iOS there is new UUID in path every time I'm installed test build.
PS: Windows builds working good with Allure test results.
Running OS: Ubuntu (for mobiles) & Windows 10 Mobile OS: Android 10+, iOS 18+ UnityTestFramework 1.4.6 Allure version 2.12.1 (use Allure.Net.Commons 2.13.0) .NET 8
The problem is Android devices trying set test results in temporary directory, that can't be achieved without increasing privileges. Also this path not permitted to read wnen you're using ADB connection without root privileges.
As solution you can create allureConfig.json in runtime and write it to persistent data path before creating Allure instance. Persistent data path can be interpolated in directory value, so it will be works fine on iOS too.