【问题标题】:Simplecov not generating reports in gitlab in proper formatSimplecov 没有在 gitlab 中以正确的格式生成报告
【发布时间】:2021-08-23 23:20:07
【问题描述】:

我在 gitlab 中使用 simplecov 为我的 ruby​​ 项目生成测试报告。报告已成功生成,但输出格式不正确。在我的本地主机中,它以正确的格式生成输出。知道为什么会这样吗? 这是我的 gitlab-ci.yml 步骤的样子:

rspec:
 stage: rspec
 script:
  - bundle exec rspec
 allow_failure: false
 artifacts:
  name: test_report
  paths:
   - coverage/index.html
 when: always

【问题讨论】:

    标签: ruby gitlab gitlab-ci simplecov


    【解决方案1】:

    SimpleCov 除了 index.html 之外还会生成一堆文件,我猜也有一些样式,所以可能你可以尝试将文件夹添加到 gitlab 工件中,而不是只添加 index.html

    【讨论】:

    • 当我添加整个覆盖文件夹而不是仅仅 index.html 时它工作了
    猜你喜欢
    • 2019-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-27
    • 2018-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多