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

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

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


    
        

        
7条回答
  •  一生所求
    2021-02-02 07:27

    The phpunit documentation is a bit minimalistic when it comes to exclusion in a testsuite. Apparently, only entire directories can be excluded but not individual files. I would be very happy to be proven wrong. The workaround seems to be using the @group feature as posted above by Alister Bulman.

    It's kind of a pain needing to tag every single test in those test suites I'd like to keep.

提交回复
热议问题