I'd like to be able to run tests by file name, not by class name or group name, in scripts/run-tests.sh
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 291670.patch | 231 bytes | swentel |
| #1 | select-tests-by-filename-291670.patch | 1.66 KB | dlhubler |
I'd like to be able to run tests by file name, not by class name or group name, in scripts/run-tests.sh
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 291670.patch | 231 bytes | swentel |
| #1 | select-tests-by-filename-291670.patch | 1.66 KB | dlhubler |
Comments
Comment #1
dlhubler commentedAlso fixes small bug i noticed, selecting tests by class name had wrong keyname (class_name v.s. class)
Comment #2
dlhubler commentedComment #3
dlhubler commentedI incorrectly had this under "Testing Infrastructure", moving to Drupal proper
Comment #4
moshe weitzman commentedlooks good to me. i only did a code review.
Comment #5
damien tournoud commentedFair enough for me, and also fixes a bug (--class had no effect).
Comment #6
dries commentedI removed some tabs, extended the documentation a bit and committed this to CVS HEAD. Thanks.
Comment #7
swentel commentedShouldn't there be this at the top of the file:
#!/usr/bin/php
easier to run ;-) (and we do it for all other files too)
Comment #8
swentel commentedPatch adds #!/usr/bin/php at the top.
Trivial patch of he month ?
Comment #9
damien tournoud commentedThere is no sane default for this. On Mac OS X for example, this will default to the system PHP binary (old for Tiger, more recent for Leopard), not to the one you use in MAMP. It's better to have no default at all.
On the other hand, it would be cool if you could find a way to automatically detect the path of the PHP binary which is used to run the script. We need that information down the road (see comments in the file), and we currently default it badly to /usr/bin/php.
Comment #10
swentel commentedFair enough, but should'nt we remove it then from drupal.sh to be consistent in core ?
Oh well, this is trivial of course :)
Comment #11
damien tournoud commentedNo really: it's critical for Simpletest to run on the good PHP interpreter. It's not that critical for drupal.sh.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.