首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Fastlane/Jenkins生成代码覆盖率

使用Fastlane/Jenkins生成代码覆盖率
EN

Stack Overflow用户
提问于 2016-08-23 23:47:29
回答 1查看 2.1K关注 0票数 3

我正在尝试用Sonar/Jenkins by Fastlane生成代码覆盖率。

我使用Jenkins运行的脚本: Fastlane test。

在我的快速文件中,我这样做:

代码语言:javascript
复制
desc "Runs all the tests"
lane :test do
  scan(scheme: "XXX-icTests",
    clean: true,
    code_coverage: true,
    output_directory: "sonar-reports",
    output_types: "junit,json-compilation-database",
    buildlog_path: "sonar-reports",
    derived_data_path: "sonar-reports",
    use_clang_report_name: true,
    xcargs: "ONLY_ACTIVE_ARCH=YES"
  )
  slather(
    cobertura_xml: true,
    output_directory: "sonar-reports",
    proj: " XXX.xcodeproj",
    workspace: " XXX.xcworkspace",
    scheme: " XXX-ic",
    build_directory: "sonar-reports",
    ignore:[]
  )
  oclint(
    compile_commands: "sonar-reports/compile_commands.json",
    report_type: 'pmd',
    select_regex: /XXX/,
    max_priority_1: 10,
    max_priority_2: 400,
    max_priority_3: 4000,
    enable_clang_static_analyzer: false,
    allow_duplicated_violations: false,
    list_enabled_rules: true,
    report_path: "sonar-reports/oclint.xml"
  ) 
  sonar
end

但是,当在模拟器上构建应用程序时,它会停在这里:

在这种情况下会有什么问题呢?

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-01-25 03:47:08

在快速通道扫描之前,我正在使用next。在shell脚本上

FASTLANE_EXPLICIT_OPEN_SIMULATOR=2快速通道扫描--方案$job

这将触发模拟器

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39105620

复制
相关文章

相似问题

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