获得徽章的“未知”报道

问题描述

一直试图在代码覆盖率徽章中显示覆盖率。我正在CI / CD上报道 -> JOBS部分,但是覆盖范围没有在gitlab徽章中更新。以下是我的gitlab-ci.yml文件,我在其中找到了覆盖范围并将其保存在工件中。


variables:
  DOCKER_DRIVER: overlay2
  GIT_CLEAN_FLAGS: -ffdx -e node_modules/
  GIT_DEPTH: 10

stages:
  - test

test:
  image: docker:19.03.12
  services:
    - docker:dind
  stage: test
  script:
    - c8 --all  --reporter=text-summary npm run test 
  artifacts:
    when: always
    paths:
      - coverage

配置- 测试覆盖率解析-“ Statement \ s +:\ s(\ d +。?\ d +)%”

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...