Maven Cobertura plugin not generating coverage.xml

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

    Add below lines to your application Goals:(configure section of the application in jenkins)

    cobertura:cobertura -Dcobertura.report.format=xml
    

    pom.xml changes:

    
    
        
            org.codehaus.mojo
            cobertura-maven-plugin
            2.6
            
                
                    html
                    xml
                
            
        
    
    

提交回复
热议问题