Hi,
I have a large number of tests to run and wish to split them into separate classes

These classes should share common functionality so I'd like to use a parent class for them all - the parent will contain no tests.

According to the simpletest documentation
http://www.lastcraft.com/group_test_documentation.php

This can be done either by making the parent class abstract or setting SimpleTest::ignore('MyFileTestCase');

But neither of these methods is successful in Drupal which tries to instantiate the abstract class and pays no attention to the ignore setting.

Comments

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

This is due to #205892: Make get_info in classes optional never getting ported as #241156: Provide backwards-compatibility layer for 5.x simpletest was never completed.

There is no work being done in 5.x which is the problem. I'm not sure what code to change, but basically you need it to ignore classes that don't have a get_info() function.

If you provide a patch I can commit. Otherwise I will see if I get time, as this is very old code. (before I became maintainer)

boombatower’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Not maintained...Drupal 6 is the future.