有沒有辦法讓Phing輸出三葉草格式它的覆蓋報告?三葉草覆蓋,Phing
我知道PHPUnit的具有--coverage三葉草,但我不知道如何實現從Phing此選項。
我不想手動使用< exec命令 - 它違背了Phing點。
我使用Phing 2.4RC2
感謝。
有沒有辦法讓Phing輸出三葉草格式它的覆蓋報告?三葉草覆蓋,Phing
我知道PHPUnit的具有--coverage三葉草,但我不知道如何實現從Phing此選項。
我不想手動使用< exec命令 - 它違背了Phing點。
我使用Phing 2.4RC2
感謝。
我做了一些研究,Phing不支持Clover覆蓋,你有使用exec。
這裏是我的exec命令:
< exec命令=「PHPUnit的--bootstrap = $(項目)/test/bootstrap.php --log-JUnit的$ {}報告/logfile.xml --coverage -clover $ {report} /coverage/clover.xml --coverage-source $ {report}/coverage --coverage-html $ {report}/coverage-html/$ {project} test/*「/ >
Phing支持輸出到由2.4版本三葉草格式,見http://www.phing.info/docs/stable/hlhtml/index.html#d5e12507
<phpunit codecoverage="true">
<formatter type="clover" outfile="clover.xml"/>
<!-- ... -->
</phpunit>