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

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

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


    
        

        
7条回答
  •  有刺的猬
    2021-02-02 07:20

    To exclude the file name TestCase.php.

    add this to your phpunit.xml

    
        
            ./tests
            ./tests/TestCase.php
        
    
    

    Here is an additional excerpt from a real-live test-suite I can confirm it working with:

    ...
        
            
                ./tests
                tests/N98/Magento/Command/Installer/UninstallCommandTest.php
            
        ...
    

提交回复
热议问题