phpunit merge two or more clover.xml reports

前端 未结 3 1625
粉色の甜心
粉色の甜心 2021-02-10 06:02

I have several clover.xml reports of different extensions of a projects. I want to combine them into one clover.xml and then create it into a clover html. But i see no way with

3条回答
  •  盖世英雄少女心
    2021-02-10 06:21

    If you are running jenkins or similar include a php script in your Ant build file to merge the files using SimpleXML

    An example is here http://kuttler.eu/post/merging-and-splitting-xml-files-with-simplexml/

    Then in your post build actions jenkins will use the clover.xml to generate your code coverage

    enter image description here

提交回复
热议问题