In trying to run both contrib and core tests with 6.x I found a very odd and aggravating bug. If you run tests from (for example) CCK or admin_menu that use the 7.x API, followed by the poll module test (possibly others, but this is a clear example), then lots of the poll module tests fail AND at the end of the test Drupal acts as though simpletest and poll modules are disabled! One has to visit the modules page to get them to show up again!

This appears to be due to a stale list of enabled modules. In the poll tests, poll module was already enabled, so the calls to drupalModuleEnable() should have cause a message in the test report that the module was already enabled. This did no happen.

CommentFileSizeAuthor
#3 wacky-router-287398-2.patch681 bytespwolanin

Comments

yched’s picture

could that be related to http://drupal.org/node/275052 ?

pwolanin’s picture

Maybe related, but the fix that seems to work is to work is to reset the module cache in tearDown() - patch coming...

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new681 bytes

I'm having some trouble reproducing this on a more stock install - it's very odd and frustrating. Attached is the patch that fixes this when I see it.

note, this patch could potentially be combined with http://drupal.org/node/274486

boombatower’s picture

Try new code I have removed support for 7.x style tests in 1.x branch and have created a 2.x branch with complete backport of 7.x module.

#274542: Back-port the batch API patch & related imporvements

pwolanin’s picture

Does the 2.x branch also support old-style tests? Browsing the files in CVS suggests not.

Also, the drupal_web_test_case.php file is still in the 1.x branch, but your comment above suggests it was removed?

boombatower’s picture

Was intended to be removed, I'll check it out when I get home.

The 2.x branch does not support the old format.

Rewrote module page and created this documentation explaining it: http://drupal.org/node/291740.

boombatower’s picture

Removed.

boombatower’s picture

Status: Needs review » Fixed

Marking as fixed unless found otherwise.

boombatower’s picture

Assigned: Unassigned » boombatower
Anonymous’s picture

Status: Fixed » Closed (fixed)

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