dongxieli3839 2017-05-10 07:59
浏览 60
已采纳

如何仅在phpunit中为特定测试套件编写CodeCoverageIgnore

I have defined two test-suites in phpunit.xml file, one for Unit Tests and other for Functional Test. For some functions which can't be unit tested, I am using @codeCoverageIgnore in my source code. But I do not want this code to be ignored when running Functional Tests.

Is it possible to add test-suite name to codeCoverageIgnore so that my code is ignored for unit tests and not for functional tests.

  • 写回答

1条回答 默认 最新

  • dtwr2012 2017-05-10 08:02
    关注

    No, that is not possible. If you think it should be possible then please open a ticket.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?