Maven Cobertura plugin not generating coverage.xml

前端 未结 8 1889
我在风中等你
我在风中等你 2021-01-31 15:01

I am trying to generate a coverage.xml so that I can reference it in Cobertura plugin of Hudson, but the file is not being created.

I\'ve added the following to my POM

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 15:37

    I have the same issue using 2.6 of the plugin.

    I found that when I specify both types, I only got html.

               
                   html
                   xml
               
    

    But when I specify only xml, I get an xml report.

               
                   xml
               
    

    This is probably a bug in the plugin.

    Another user suggested creating two executions. I tried that with no success (meaning I got html, but not xml).

提交回复
热议问题