Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's nice that you can run an individual simpletest, but it would be more helpful to run a group of tests. The attached patch allows you to type "drush test run ", for example "drush test run 'Node Tests'" to run all of the node tests. It also improves the listing page "drush test list" to list the available groups.
Comment | File | Size | Author |
---|---|---|---|
#3 | 281396.patch | 3.04 KB | douggreen |
#1 | simpletest.patch | 3.17 KB | douggreen |
Comments
Comment #1
douggreen CreditAttribution: douggreen commentedComment #2
moshe weitzman CreditAttribution: moshe weitzman commentedAny chance you can make a patch for D6 and D7? I hate to add features in 5 which are not in later version.s Users get hostile when they upgrade and features disappear .. This is indeed wanted functionality.
Comment #3
douggreen CreditAttribution: douggreen commentedAttached is the 6.x patch.
Comment #4
douggreen CreditAttribution: douggreen commentedI'll do the 7.x version after you're done reviewing/committing the 6.x version. But since most of my sites are still on 5.x, I'd very much appreciate getting that one tested/reviewed/committed too. Thanks!
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedlooks like #297070: running groups of tests, running tests that match a regular expression is more feature rich? shall we mark this as a dupe and work on that one?
Comment #6
douggreen CreditAttribution: douggreen commentedFrom the title, you'd think that, ... but looking at the patches, that patch just runs all tests that match a regex, and not all patches within a particular group name. I think that this is still the better one.
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedno test running feature anymore. use run_tests.sh for now.