Exceptions during the setUp() or tearDown() method of a test are not handled

Created on 9 July 2016, almost 8 years ago
Updated 14 June 2024, 1 day ago

Right now if an exception is thrown during a test's setUp() or tearDown() method, the testbot shows a "CI error". See discussion at #2189345-192: run-tests.sh should exit with a failure code if any tests failed for additional details.

Overall it would be better if that exception were handled by Drupal itself.

Drupal 8 looks like it fixed this in #2170023: Use exceptions when something goes wrong in test setup .

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
Simpletest 

Last updated 1 day ago

Created by

🇺🇸United States David_Rothstein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024