0
我有一些测试写在几个文件中:tests/ApiTest.php
,tests/UtilsTest.php
。我也有tests/bootstrap.php
一些包括和tests/phpunit.xml
如何在phpunit中运行多个测试文件?
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
cacheTokens="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
verbose="false">
</phpunit>
如果键入phpunit -c tests/phpunit.xml tests/ApiTest.php
,一切正常。现在我想运行测试文件夹中的所有文件,并以'Test.php'结尾。我应该输入什么?或者我应该添加一些套件?
如果输入phpunit -c tests/phpunit.xml tests
,则会有空输出。