【问题标题】:Integrate Detox with Fastlane将排毒与 Fastlane 相结合
【发布时间】:2020-06-24 08:46:14
【问题描述】:

我确实为我的react-native 应用设置了一些e2e 测试和detox。 我正在使用 detox test 命令手动运行这些测试,但我找不到(在 detox 的问题中,也没有在 Fastlane 的文档中)将这些测试直接集成到 Fastlane 中的方法。 these options 似乎都不适合我正在寻找的东西。

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

提前致谢!

【问题讨论】:

    标签: reactjs react-native jestjs fastlane detox


    【解决方案1】:

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

    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
    

    Android (./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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-21
      • 2013-02-10
      • 2019-12-02
      • 2012-05-19
      • 2020-05-04
      • 1970-01-01
      相关资源
      最近更新 更多