将排毒与 Fastlane 集成

Gui*_*sch 5 reactjs jestjs react-native fastlane detox

我确实为我的应用程序设置了一些e2e测试。我正在使用命令手动运行这些测试,但我找不到(无论是在 detox 的问题中,还是在 Fastlane 的文档中)直接在 Fastlane 中集成这些测试的方法。这些选项似乎都不适合我正在寻找的内容。detoxreact-nativedetox test

任何人之前都设法实现了这一点,还是我必须为此找到解决方法?

提前致谢!

Bar*_*eef 4

./ios/fastlane/Fastfile我通过以下方式解决了 iOS ( ) 的问题:

platform :ios do

  lane :e2e do
    Dir.chdir "../.." do # Navigate to the root of the project where the Detox files are placed.
      sh("detox build --configuration ios.sim.release")
      sh("detox test --configuration ios.sim.release --cleanup")
    end
  end

end
Run Code Online (Sandbox Code Playgroud)

和安卓(./android/fastlane/Fastfile):

platform :android do

  lane :e2e do
    Dir.chdir "../.." do # Navigate to the root of the project where the Detox files are placed.
      sh("detox build --configuration android.emu.release")
      sh("detox test --configuration android.emu.release --cleanup")
    end
  end

end
Run Code Online (Sandbox Code Playgroud)