How to change the format of the LCOV report executed by Karma?

前端 未结 1 736
眼角桃花
眼角桃花 2020-12-28 12:57

I\'ve configured Karma to report the coverage of my JavaScript code. Here is the part of the configuration in the karma.conf.js file:

coverageRe         


        
相关标签:
1条回答
  • 2020-12-28 13:18

    You could run a script that does: cat lcov.info | egrep "^(SF|DA|BRDA):" > lcov.info.new; mv lcov.info.new lcov.info.

    With that I get:

    SF:./app/scripts/app.js
    DA:2,1
    DA:20,1
    DA:29,0
    DA:34,0
    
    0 讨论(0)
提交回复
热议问题