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.
In the GUI, hook_test_group_started() and hook_test_group_finished() are called before and after each test class.
(It might be better to call them before and after each test group, as described in #2234479: Deprecate hook_test_* hooks in simpletest).
The behaviour is completely different when running scripts/run-tests.sh:
- hook_test_group_started() is never called
- hook_test_group_finished() is called after each test case, not each test class as in the GUI
Comments
Comment #1
alberto56 CreditAttribution: alberto56 commentedRelated Drush issue: https://github.com/drush-ops/drush/issues/565