How do I generate Emma code coverage reports using Ant?

前端 未结 3 774
误落风尘
误落风尘 2020-12-25 12:18

How do I setup an Ant task to generate Emma code coverage reports?

3条回答
  •  囚心锁ツ
    2020-12-25 13:11

    To answer questions about where the source and instrumented directories are (these can be switched to whatever your standard directory structure is):

    
    
    
    
    
    
    
    

    Classpaths:

    
      
        
      
    
    
    
      
      
      
    
    
    
      
      
    
    

    First you need to setup where Ant can find the Emma libraries:

    
        
        
    
    

    Then import the task:

    
    

    Then instrument the code:

    
        
        
        
            
                
            
        
        
        
            
            
            
        
    
    

    Then run a target with the proper VM arguments like:

    
    
    

    Finally generate your report:

    
        
            
                
                    
                
                
            
        
    
    

提交回复
热议问题