我正在使用 python 脚本将 lcov 文件转换为 cobertura 格式,以便我可以使用 Jenkins 插件在作业中显示报告。我需要排除几个包和一些文件,python 脚本只提供排除包的选项。还有其他解决方法吗?
https://github.com/eriwen/lcov-to-cobertura-xml
排除整个包,python lcov_cobertura.py lcov.info --excludes sources.modules.web.services.transport -o coverage1.xml
我想排除传输包下的“BundleService.js”,(这不起作用) python lcov_cobertura.py lcov.info --excludes sources.modules.web.services.transport.BundleService -o coverage2.xml
尝试了多个正则表达式,仍然没有运气。