Now after running google analytics tests very often - I have some roles defined that are not removed after running the test. Why are the roles not rolled back after tests are completed?

simpletest_Aj5y
simpletest_CQNY
simpletest_d085
simpletest_Dmjh
simpletest_DrZx
simpletest_EA5U
simpletest_F69Q
simpletest_i7DP
simpletest_IwRL
simpletest_KHOD
simpletest_Nva0
simpletest_qGxP
simpletest_RzSa
simpletest_vaFB
simpletest_wYNt
simpletest_yc9d

Comments

hass’s picture

Title: Roles not deleted after running tests » Users and Roles not deleted after running tests

Users are also not rolled back.

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

Sure you have right version? 2.x is backport of 7.x which creates a separate database for testing and then removes all tables.

hass’s picture

I think I have tried to explain you in ~6-8 cases that there are bugs and it is not working as it should.

boombatower’s picture

You seem to think that I can't admit there are bugs...when I have never said or implied that.

Let me state it: There are undoubtedly bugs in SimpleTest.

Regardless my question is valid. The issue you describe used to plague 1.x, but in 2.x an ENTIRELY SEPARATE database is used...how does that happen?

If this is an issue then it most assuredly is in D7 version as well and should be moved there. Could have something to do with statics, but I'm guessing the tests might be messed up...as almost every test in core and my D6 contrib tests make roles...and they are deleted.

Please provide more information/debug the issue. I can't track down issues in every test that is written, I appreciate help there.

hass’s picture

That's what I said some times ago... the 6.x-2.x simpletest does not create a second database to run their tests only on the second temp database. I have not yet understood why this switch while running the test does not happen, but the DB switch is not working and simpletest changes settings in my main database and therefore destroys my current site.

If I remember correctly I have asked in http://drupal.org/node/335756#comment-1120743 how simpletest *should* work only to understand it and figured out it's not working correctly. I guess - it could be related to the locale module... but I'm only guessing.

Could be a duplicate of #346844: Clear language statics to remove locale module errors.

boombatower’s picture

I just confirmed I don't have this issue.

hass’s picture

As I remember I have reproduced this with a brand new Installation, Locale module + Google Analytics module... but tooo long ago now - cannot remember all, but I wrote in GA release notes that nobody should ever run a test as simpletest destroys sites.

boombatower’s picture

Either static related and we can mark as duplicate #348455: Provide a scalable way to ensure a clean testing environment for SimpleTest or something new.

boombatower’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Please re-open if issue after scalable stuff in....rather far reaching issue I'm afraid.