Maven Cobertura plugin not generating coverage.xml

前端 未结 8 1881
我在风中等你
我在风中等你 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:54

    My objective was to get Cobertura to run duing mvn test with no additional command line parameters. Here's the magic XML that did the trick for me, with both the HTML and XML being generated in /target/site/cobertura.

    
        
            
                org.codehaus.mojo
                cobertura-maven-plugin
                2.7
                
                    
                        cobertura
                        test
                        
                            cobertura
                        
                        
                            
                                xml
                                html
                            
                        
                    
                
            
        
    
    

提交回复
热议问题