[TYPO3-dev] Unit testing suggestions

Stefano Kowalke blueduck at gmx.net
Thu Apr 29 21:35:17 CEST 2010


Hi,

in addition on this I suggest to rename all test files from
*testcase.php to *Test.php.
The reason is really simple, but very important. If you run PHPUnit from
the commandline, in the TYPO3 context you will do this through the
CLI_Dispatcher and phpunit, you just pass the path with the testfiles.

PHPUnit reconize only files with *Test.php as testfiles and will be
execute these files.

The new version of phpunit supports *Test.php files [1]

Cheers,
Stefano

[1] http://forge.typo3.org/issues/show/6638
[2] http://forge.typo3.org/issues/show/6922





More information about the TYPO3-dev mailing list