тестирование нескольких папок

Я использую в своем проекте подмодули PHPUnit 3.5.12, netbean 6.9 и git.

Итак, моя архитектура папок выглядит так:

lib/
lib/submodule1
lib/submodule1/src
lib/submodule1/tests
lib/submodule2
lib/submodule2/src
lib/submodule2/tests
src/
tests/

Учитывая, что моя основная тестовая папка (с phpunit_netbean.xml и bootstrap.php) находится в папке / tests /; Как мне запустить тесты в / lib / * / tests /?

Я посмотрел на testsuite, но не могу заставить его работать. Пока я пробовал следующую конфигурацию в моем файле tests / phpunit_netbean.xml:

<?xml version="1.0"?>
<phpunit
    bootstrap="./bootstrap.php"
    strict="true"
    stopOnError="false"
    stopOnFailure="false"
    stopOnIncomplete="false"
    stopOnSkipped="false"
    colors="false"
    verbose="true"
    >

    <testsuites>
        <testsuite name="modules">
            <directory>../lib/*</directory>
        </testsuite>
    </testsuites>

</phpunit>

И когда я нажимаю ALT + F6 в Netbean, у меня есть только тесты из / tests, которые выполняются. То же самое с:

/tests$ phpunit -c phpunit_netbean.xml --testdox ./
enter code here

Кроме того, я пробовал это:

/tests$ phpunit -c phpunit_netbean.xml --testdox --loader modules ./
PHPUnit 3.5.12 by Sebastian Bergmann.

Could not use "modules" as loader.
10
задан Gordon 20 December 2011 в 10:03
поделиться