Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tests running on an Android Emulator that is managed via Gradle Managed Devices #79

Open
1 of 3 tasks
jaysirju opened this issue Mar 20, 2023 · 1 comment
Open
1 of 3 tasks

Comments

@jaysirju
Copy link

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Allure results are written to /sdcard/googletest/test_outputfiles/allure-results or <allure.results.directory> by default when running on a device.

What is the motivation / use case for changing the behavior?

If the device is managed via Gradle Managed Devices, you cannot use 'adb pull' to get the contents of the sd-card. However, there is a little known feature that the contents of the /sdcard/Android/media/<Bundle Identifier>/additional_test_output directory is copied over to app/build/outputs/managed_device_android_test_additional_output after the tests have been executed.

Details can be found here

@kadestro
Copy link

kadestro commented Feb 7, 2024

you can use additionalTestOutputDir to change the directory from which the test results will be taken, e.g.:

testInstrumentationRunnerArguments["additionalTestOutputDir"] = "/sdcard/googletest"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants