Reported by William Martin, Apr 22, 2011
Hi, I think, it's will be nice to add an option to run unit test on a single app. For my example, i am working an a specific application which parse binary data. I am writing lot of unit test, to test all error i can foud it the file : - endian encoding - filesize - error in the binary stream - error in n-th sub header - error in string encoding - error in IEEE float format - .... Right now, i think my parser is very robust, and unit test take 2 minutes in my dev PC. I have some other parsers to write, and unit-test will be as longer as i first one. In two month, a run of unit test on all my apps will be take 30 minutes. So it will be nice to add an "--app" option to focus unit test on it, for this run. I will be nice during dev of this app. William
Comment 1 by William Martin, Apr 22, 2011
Also about phpunit, It's can be nice to add an option to use a custom XML configuration file. William
Comment 2 by Thomas Keller, Apr 26, 2011
phpunit offers a --filter option - maybe this can be "forwarded" from the "selftest" (?) run target photon provides?
Comment 3 by William Martin, Apr 26, 2011
I think those options are for "runtests". Actually the XML configuration file is generated on the fly.
Comment 4 by William Martin, Apr 26, 2011
I submit an patch to add those features. Actually, i use it and i prefer merge that in the main trunk. The patch add two options to the runtests command : * --app : to run the test only on this app * --configuration : It's by-pass the photon generation of the phpunit file, and use the file passed in argument.