简体   繁体   中英

How can I make C8 output total code coverage %?

I am able to generate code coverage reports using c8. 在此处输入图片说明

But how do I output total coverage % every time? Currently, it outputs total coverage % only if it is less than the threshold like this. 在此处输入图片说明

But I wanted to see the % every time it runs.

Config :

{
  "include": "app",
  "check-coverage": true,
  "lines": 99,
  "reporter": ["text","cobertura"]
}

我只需要添加“文本摘要”作为记者之一。

"reporter": ["text","text-summary","cobertura"]

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