php - Phpunit: Testing files outside the testsuite -


i'm having problem when running phpunit on tests directory. default class inheritence this: controllertest > projecttestcase > zend_test_phpunit_controllertestcase.

both projecttestcare zend_test_phpunit_controllertestcase located outside tests directory.

this phpunit.xml looks like:

<phpunit bootstrap="./bootstrap.php" colors="true" stoponfailure="true"> <testsuite name="application test suite">     <directory suffix="controllertest.php">./application/controllers</directory> </testsuite> <filter>     <whitelist>         <directory>../../library/zend</directory>         <directory>../../library/doctrine</directory>     </whitelist> </filter> 

the problem finds projecttestcase , aborts because contains no errors.

it doesn't match testsuite directory and doesn't match suffix pattern.

anyone has encountered problem or has fresh idea how solve this?

i have excluded directories did not want process.

<testsuites>     <testsuite name="icap user interface">         <directory suffix=".test">app</directory>     </testsuite>     <testsuite name="user interface library">         <directory suffix=".test">lib/.</directory>     </testsuite> </testsuites> <filter>     <whitelist adduncoveredfilesfromwhitelist="true">         <directory suffix=".class">lib/util</directory>         <directory suffix=".fn">lib/util</directory>          <exclude>             <file>lib/util/ajax.class</file>             <file>lib/util/createnotificationtypefilter.fn</file>             <file>lib/util/notificationview.fn</file>              <directory>externallibraries</directory>         </exclude>     </whitelist> </filter> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -