问题描述
一直试图在代码覆盖率徽章中显示覆盖率。我正在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 +)%”
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)