How to exclude file from PHPUnit test suite in xml config?

前端 未结 7 651
夕颜
夕颜 2021-02-02 06:39

I have following, very simple, XML config for PHPUnit:


    
        

        
7条回答
  •  一个人的身影
    2021-02-02 07:27

    Hey there, Make sure that you put your exclusions in the Whitelist. Example:

    
        
            
                /not/even/looked/at/
            
            
                /path/to/test/dir/
                
                    /path/to/fileToExclude.php
                
            
        
    
    

    http://www.phpunit.de/manual/current/en/appendixes.configuration.html#appendixes.configuration.blacklist-whitelist

提交回复
热议问题