How to Run TestNG Tests on Jenkins

后端 未结 3 1013
傲寒
傲寒 2020-11-30 13:00

I\'m trying to run TestNG tests (in a contained Java project) from Jenkins but having no luck.

It appears as though the TestNG plugin for Jenkins (https://wiki.jen

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 13:12

    As commented above, please use the following ant script to run TestNG unit tests. Please tweak the below code to meet your requirements.

    
    
        
        
        
            
                
             
            
        
        
            
            
                
                    
                
            
        
        
            
        
        
        
        
            
            
                
                
            
        
        
            Running Tests...
            
            
                
                
            
        
    
    

    Let me know if you encounter any issues. BTW, please use the Jenkins ant plugin/task to run this script

提交回复
热议问题