jeudi 8 janvier 2015

PhpUnit simple command to show less results

At the moment if I run ./phpunit -c ../app I might get output like:



PHPUnit 3.7.88 by Sebastian Begmann.

Configuration read from /var/www/site/app/Symfony/app/phpunit.xml

FFFSS....

Time 7.9 seconds, Memory: 55.00Mb

There were 4 failures:

.. lists the failures

FAILURES!
Tests: 9, Assertions: 64, Failures: 4, Skipped: 2.


This is good in some cases, like if I want to run the tests myself. But for some cases (automated testing), I just want to run the tests and know whether they all passed or not (maybe send an email if there were failures).


So my question, is there a simple command I can use like ./phpunit -c ../app --short which will just return whether all tests passed or not.


Thanks


Aucun commentaire:

Enregistrer un commentaire