0
在我們的流程自動化中,我們執行phpunit以針對代碼庫運行測試。由於要求的細節,輸出日誌文件是通過一個參數指定(而不是在phpunit.xml) - PHPUnit的運行如下:phpunit從命令行設置logIncompleteSkipped的值
phpunit -c ${buildDir}/phpunit.xml --group ${testGroup} --log-junit ${reportsDir}/out-phpunit.xml
這種運作良好,但它不包括跳過的測試進入報告。如果phpunit.xml指定輸出報告,我會包括
<logging>
<log type="junit" target="output-logfile.xml" logIncompleteSkipped="true"/>
</logging>
不幸的是,這是不可能的,由於外部進程控制和動態分配的位置。
我想包括這PHPUnit的XML:
<logging>
<log type="junit" logIncompleteSkipped="true"/>
</logging>
然而,這並沒有有所作爲。那麼,如何從命令行告訴phpunit 記錄跳過的測試?