首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将Detox与Fastlane集成

将Detox与Fastlane集成
EN

Stack Overflow用户
提问于 2020-03-12 18:07:32
回答 1查看 867关注 0票数 5

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

有没有人以前实现过这个功能,或者我必须找到解决这个问题的办法?

提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2020-06-16 22:19:14

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

代码语言:javascript
复制
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/fastlane/Fastfile):

代码语言:javascript
复制
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60651758

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档