Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-01-09 (4 months ago) | | Not enough user ratings | | Total: 239 This week: 2 | | All time: 8,044 This week: 28 |
|
Description | | Author |
This class can run automated test again when project files change.
It can monitor directories of source files involved in the defined tests to detect any changes.
The class can run PHPUnit to execute all tests again if there are source files that were changed since last time. Innovation Award
April 2014
Number 3
Prize: One subscription to the PDF edition of the PHP Architect magazine |
PHPUnit is a popular tool frequently used by PHP developers for testing PHP projects.
You do not need to run tests of a project every time if the project files did not change.
This class can automate the execution of tests using PHPUnit only after your project files changed.
It is able to figure which files are used in the tests and checks if they changed to determine if the tests should be run again.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 1x |
|
Details
Autotest for PHP
Requirements
-
PHP 5.3+
-
PHPUnit
-
Symfony/Console
Installation
Download and unpack php.autotest.
Download Composer (http://getcomposer.org) and run:
composer.phar install
Composer installs Console component
Optionally link bin/autotest.php to your /usr/bin like this:
ln bin/autotest.php /usr/bin/autotest
Usage
Run bin/autotest.php with optional params from the root of your application:
Example (assuming file is linked to bin directory):
autotest --cmd=/usr/local/zend/bin/phpunit --src_path=source --tests_path=MyTests --timeout=60
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.