intellij idea community edition - code coverage?

前端 未结 3 2026
一向
一向 2021-02-19 16:54

Looking at comparison matrix it looks like IDEA CE does not support code coverage at all. Bu there are lots of code coverage tools available, so perhaps it\'s possible to incorp

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 17:12

    Another way is to use sonar for the reports and add that to your maven pom.xml.

    I find the reports way more convenient to read than the emma reports.

    If you want to give it a try:

    1) Download SonarQube

    2) add the sonar plugin to you pom.xml (maven 3 example)

    
      
        
          
            org.codehaus.mojo
            sonar-maven-plugin
            2.0
          
        
      
    
    

    3) start the sonar server

    4) run mvn -DskipTests sonar:sonar

    For more info, see the maven section of the sonar docs

提交回复
热议问题