简体   繁体   中英

Gitlab coverage badge from nyc istanbul cobertura xml

i have a public adonis js boilerplate in gitlab and i am struggling with the coverage badge as it shows "unknown" the repo link: https://gitlab.com/XanXus961/adonis-boilerplate

The coverage badge does not work with the cobertura report but with the coverage keyword .

You should add this to your test job:

  coverage: '/Statements\s*: \d+\.\d+/'

It should match this line , Gitlab should do the rest.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM