0

I am currently working on a react native project using Detox for e2e tests. I can run tests on my android device changing detox configuration

"android-device": {
      binaryPath: "android/app/build/outputs/apk/release/app-release.apk",
      build: "cd android && ./gradlew app:assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
      type: "android.attached",
      device: {
        avdName: "RF8M80C2LHR",
      },
    },

I want to do the same thing with my iPhone device but doesn't work the same way that works with android. Any recommendation on how to achieve this?

Fazli Zekiqi
  • 531
  • 2
  • 7
  • 14

1 Answers1

1

Not supported. There is a pretty long issue, explaining why.

https://github.com/wix/Detox/issues/95

Léo Natan
  • 56,823
  • 9
  • 150
  • 195
  • Leo Natan - Is this still the case for iOS devices? Can I run detox tests on real Android device instead? If yes, is there some guide? Thanks! – BlueDev Dec 27 '20 at 19:53
  • For iOS, yes. For Android, it is supported as far as I know, but I don’t think we’ve written a guide. Best way is to start a new question and we’ll try to answer. – Léo Natan Dec 28 '20 at 20:05
  • 1
    It is possible to run on a real Android device https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md – Chaki_Black Nov 23 '21 at 10:56