🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# C.78 PHPUnitReport This task transforms PHPUnit xml reports to HTML using XSLT. Table C.107:聽Attributes NameTypeDescriptionDefaultRequired`infile``String`The filename of the XML results file to use.testsuites.xmlNo`format``String`The format of the generated report. Must be `noframes` or `frames`.noframesNo`styledir``String`The directory where the stylesheets are located. They must conform to the following conventions: frames format: the stylesheet must be named `phpunit-frames.xsl`. noframes format: the stylesheet must be named `phpunit-noframes.xsl`. If unspecified, the task will look for the stylesheet(s) in the following directories: the PHP include path, the Phing home directory and the PEAR data directory (if applicable). n/aNo`todir``String`An existing directory where the files resulting from the transformation should be written to.聽Yes`usesorttable``Boolean`Whether to use the sorttable JavaScript library (see <http://www.kryogenix.org/code/browser/sorttable/>)`false`No C.78.1 Example ``` <phpunitreport infile="reports/testsuites.xml" format="frames" todir="reports/tests" styledir="/home/phing/etc"/> ``` Generates a framed report in the directory `reports/tests` using the file `reports/testsuites.xml` as input. **Important note:** testclasses that are not explicitly placed in a package (by using a '@package' tag in the class-level DocBlock) are listed under the "default" package.