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.
Problem/Motivation
#2575725: Run PHPunit tests one at a time via UI to avoid exception when selecting too many added a BC layer than can be removed.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#12 | 2748967_12.patch | 1.19 KB | Mile23 |
Comments
Comment #2
alexpottComment #3
catchSlightly re-purposing this to trigger a deprecation notice.
We should then be able to automate or at least semi-automate removing code paths like this in 9.x
Comment #6
Wim LeersComment #7
Mile23simpletest_run_tests()
triggershook_test_group_started()
. #2234479: Deprecate hook_test_* hooks in simpletestWe also have a deprecation policy for simpletest happening in #2866082: [Plan] Roadmap for Simpletest
We really should deprecate all the batch-related tests runner pieces at the same time, but we'll also need to maintain them a little bit until D9.
Comment #10
Mile23simpletest_run_tests()
is only ever touched by the UI form hander, and never directly by a cli/phpunit test run. So calling@trigger_error()
wouldn't accomplish much, beyond causing a deprecation error when we test the form.If we're deprecating the UI form, then we should figure out a way to implement #2750461: Remove Simpletest UI because we don't want to maintain a graphical test runner so that people who use it see a warning that it's about to go away.
Comment #11
dawehner@Mile23
I'm wondering whether we have to treat
simpletest_run_tests()
as some form of API. Theoretically someone else could have used this function to build a custom simletest UI, even realistically this isn't the case.Comment #12
Mile23OK, sounds reasonable. I just think we're going to have trouble because we can't do
@group legacy
in Simpletest tests.Comment #19
quietone CreditAttribution: quietone as a volunteer commentedThis was done in #3110862: Remove simpletest module from core. Closing as a duplicate