How to skip tests in PHPunit?

后端 未结 3 583
天命终不由人
天命终不由人 2021-01-31 13:00

I am using phpunit in connection with jenkins, and I want to skip certain tests by setting the configuration in the XML file phpunit.xml

I know that I can

3条回答
  •  攒了一身酷
    2021-01-31 13:30

    If you can deal with ignoring the whole file then

    
    
    
    
        
            
                ./tests/
                ./tests/path/to/excluded/test.php
                    ^-------------
            
        
    
    
    

提交回复
热议问题