Page MenuHomePhabricator

unit tests fail depending on execution order
Closed, ResolvedPublic

Description

Some unit tests apparently leak state and cause other unit tests to fail, depending on the order of execution:

  • GetEntitiesTest fails if executed after PermissionsTest.
  • EditEntityTest fails if executed after ItemContentTest.

Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=51681

Details

Reference
bz51570

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:42 AM
bzimport set Reference to bz51570.
bzimport added a subscriber: Unknown Object (MLST).

Once all of the api tests are refactored and 51681 is closed I imagine this will no longer be a problem.

No api tests now depend on entity IDs or order of execution.
This should no longer be a problem.