The 'BadGroupTest' class isn't loaded there, so Drupal dies with the following message:
"Fatal error: Call to undefined method BadGroupTest::getTestInstances() in /var/www/drupal/sites/all/modules/simpletest/simpletest.module on line 177"

In 'drupal_unit_tests.php' line 50 there seems to be some 'old' code (or copied from simpletest itself?) to display a message when no tests are defined. $this->addTestCase(new BadGroupTest($test_file, 'No new test cases'));

I'd reckon that this should be changed to a 'drupal_set_message()' or something...

-H-

CommentFileSizeAuthor
#1 simpletest_no_tests_found.patch676 bytesboombatower
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

boombatower’s picture

Status: Active » Needs review
FileSize
676 bytes

Here is a patch that uses drupal_set_message instead.

Rok Žlender would know if there are other reasons for keeping it the way it is. If so it still needs to be fixed.

Rok Žlender’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good.

boombatower’s picture

Status: Reviewed & tested by the community » Fixed

Got the "ok" from Zlender.

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.