Force Exclude files from PHPUnit Code Coverage

前端 未结 5 2222
北恋
北恋 2021-02-19 10:31

Is it possible to forcefully exclude a folder from PHPUnit\'s code coverage?

Problem I\'ve got is, that I have a Symfony 1.4 project, which has folders at ./lib/ve

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 10:45

    Observation: whitelisting (the directories you want to be included in the code coverage) makes the phpunit execution of the entire test suite quicker, compared to blacklisting.

    
        
              /my/project/directory/to/be/covered
              ....
        
    
    

    Tested with: PHPUnit 4.5.0 and PHP 5.5.9

提交回复
热议问题