1

I tried step by step the instructions from Allure-Kotlin for android tests. But after finishing my tests when I run(on Pixel_4_API_29):

adb pull /sdcard/allure-results This message is shown:

adb: error: failed to stat remote object '/sdcard/allure-results': No such file or directory

This is a sample repo I created to show what I did exactly.

More info: I run tests using ./gradlew app:connectedAndroidTest, tests are run with @RunWith(AllureAndroidJUnit4.class), I already added allure.prperties file to androidTest resources as well as listeners to META-INF.services. Also, I updated Kotlin version to 1.4.21 and Gradle to 6.7.1 to be matched with allure-kotlin 2.2.5. I also already made sure of required permission to access to /sdcard folder on emulator.

I really appreciate any helpful answer and comments.

Jose
  • 336
  • 2
  • 4
  • 16

2 Answers2

3

I have looked at your code. It looks like you have a problem in AndroidManifest.xml. Please, check pr

We have prepared several examples. Thus you are able to have a look and touch allure-kotlin.

0

Did you tried to do adb pull /sdcard to pull everything and then see if there is an issue with the sdcard folder?

Also, another issue could be syntax error adb pull "/sdcard/allure-results/"

Beside this, there is a lot of question answered on topic of the posted error, such as: How do I adb pull ALL files of a folder present in SD Card

I hope that something from this helps! :D

robigroza
  • 559
  • 1
  • 5
  • 22
  • Thanks for your answer. But as I mentioned in the question, there is no problem in accessing sdcard folder on emulator/device. There was some problem with Allure settings that has been fixed by suggestion from the other answer. – Jose May 31 '21 at 19:33