How to exclude class in TestNG?

后端 未结 8 1230
囚心锁ツ
囚心锁ツ 2020-12-30 05:17

Is this possible to exclude classes in testng.xml?

I tried with


    

         


        
8条回答
  •  猫巷女王i
    2020-12-30 05:53

    If you are using a xml file (testng.xml) to define the a suite, and since TestNG 6.14.3, you cannot exclude classes in the XML tag, a way to exclude a specific class inside a package is the following:

    
    
        
            
        
        
            
                
                    
                
            
        
    
    

    Effectively, instead of excluding the class (dtd does not allow it), all the methods of the class are excluded.

提交回复
热议问题