🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 测试套件 带有一个或多个 `<testsuite>` 子元素的 `<testsuites>` 元素用于将测试套件及测试用例组合出新的测试套件。 ~~~ <testsuites> <testsuite name="My Test Suite"> <directory>/path/to/*Test.php files</directory> <file>/path/to/MyTest.php</file> <exclude>/path/to/exclude</exclude> </testsuite> </testsuites> ~~~ 可以用 `phpVersion` 和 `phpVersionOperator` 属性来指定 PHP 版本需求。在以下例子中,仅当 PHP 版本至少为 5.3.0 时才会将 `/path/to/*Test.php` 文件与 `/path/to/MyTest.php` 文件添加到测试套件中。 ~~~ <testsuites> <testsuite name="My Test Suite"> <directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">/path/to/files</directory> <file phpVersion="5.3.0" phpVersionOperator=">=">/path/to/MyTest.php</file> </testsuite> </testsuites> ~~~ `phpVersionOperator` 属性是可选的,其默认值为 `>=`。