2
在我的應用程序中,我在源代碼旁邊有phpunit測試。所以在所有的地圖旁邊,我們說DoSometing.class.php我有一個DoSomethingTest.class.php。Ant:設置phpunit.xml
我想配置phpunit.xml來測試所有這些* Test.class.php文件。
我該如何在phpunit.xml中做到這一點?
我有這樣的事情在此刻:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="true"
stopOnFailure="true"
syntaxCheck="false">
<testsuites>
<testsuite name="My Test Suite">
<directory>./*Test.class.php</directory>
</testsuite>
</testsuites>
<groups />
<filter />
<logging />
<listeners />
</phpunit>
THX你的答案。這是否也掃描所有的子目錄? – eddy147 2012-07-25 06:54:46
是的,我們在下面有更多的目錄進行處理。 – 2012-07-26 14:14:32