Closed (fixed)
Project:
SimpleTest
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Jan 2008 at 14:20 UTC
Updated:
2 Apr 2008 at 01:53 UTC
Jump to comment: Most recent file
Simpletest atm only has run_all_tests that makes it possible to run all tests from command line. This patch gives it the ability to select tests which are run from command line and also if you run it via browser.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | mw.patch | 5.67 KB | moshe weitzman |
| #2 | runtestscmdline.patch | 5.57 KB | Rok Žlender |
| run_all_tests.patch | 3.45 KB | Rok Žlender |
Comments
Comment #1
moshe weitzman commentedif it makes sense, i'd love to see 'run all tests' and 'run some tests' exposed as drush commands. thats the consensus winner for command line drupal. take a look if you haven't already.
Comment #2
Rok Žlender commentedPatch with drush command hook.
Comment #3
webchickThis is pedantic, but can we please rename the file to run_tests.php? ;)
This patch doesn't apply against HEAD...
Comment #4
webchickI've been informed that this is against 5.x, not HEAD, hence my confusion. :D
Comment #5
moshe weitzman commentedI tested via drush and this worked well. I attach a patch with slightly more thorough help text. I could not get run_all_tests.php to work but I can't spend more time debugging it. I think drush is a more way to load up drupal since it sets base_url and works with multi-site and so on. Personally, I think run_all_tests.php can be removed.
Ideas for expansion
- provide a command which lists all the available test classes like UploadPictureTests
- perhaps make the output prettier via drush_table()
Thanks for adding drush support. Two great modules, working together.
Comment #6
boombatower commentedThis patch no longer works on any of the branches.
As for 5.x it isn't really in developement, but I suppose this could be committed. If anything this should be ported to 6.x and/or HEAD.
Comment #7
moshe weitzman commentedI have committed the drush changes to drush module itself. You may now run all tests or specified tests using the 'drush test run' command. I'd like to move that code to simpletest module if you all are interested. Perhaps when drush ports to D6 you will take it.
I think the other code proposed here has already been committed by now so i mark this as fixed.
Comment #8
boombatower commentedThanks, that is what I was looking for. Trying to clean up the queue.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.