Last modified: 2013-09-18 15:20:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53681, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51681 - ModifyEntityTestBase and related api tests need refactoring
ModifyEntityTestBase and related api tests need refactoring
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-19 13:17 UTC by Aude
Modified: 2013-09-18 15:20 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2013-07-19 13:17:40 UTC
ModifyEntityTestBase is doing very bad stuff and is written very poorly.

It is in desperate need of refactoring and same goes for any related api tests that are using code from ModifyEntityTestBase.
Comment 1 Addshore 2013-08-09 09:44:50 UTC
I have been working on this all week, took a while to make sure I started in the right place, as naturally if you change one thing somewhere it breaks everything everywhere else...

Initial path is https://gerrit.wikimedia.org/r/78364 which changes the way entities are created and managed for the tests as well as implementing is usage in all tests that mess about with entities.
This means it is now safe to fix all of the tests without worrying about bad id values etc.

Also https://gerrit.wikimedia.org/r/78368 refactors the SetDescription/Label test and their base to make them better! :)

Still a long way to go refactoring all of the other tests and making sure they actually test what we want.
Comment 2 Gerrit Notification Bot 2013-08-09 11:35:49 UTC
Change 78368 had a related patch set uploaded by Addshore:
Refactor LangAttribute Api Test Cases

https://gerrit.wikimedia.org/r/78368
Comment 3 Gerrit Notification Bot 2013-08-09 11:35:53 UTC
Change 78364 had a related patch set uploaded by Addshore:
Refactor EntityTestBase

https://gerrit.wikimedia.org/r/78364
Comment 4 Gerrit Notification Bot 2013-08-09 12:30:23 UTC
Change 78078 had a related patch set (by Addshore) published:
Refactor SetAliasesTest

https://gerrit.wikimedia.org/r/78078
Comment 5 Gerrit Notification Bot 2013-08-13 11:15:17 UTC
Change 78364 merged by jenkins-bot:
Refactor EntityTestBase

https://gerrit.wikimedia.org/r/78364
Comment 6 Gerrit Notification Bot 2013-08-13 12:22:58 UTC
Change 78368 merged by jenkins-bot:
Refactor LangAttribute Api Test Cases

https://gerrit.wikimedia.org/r/78368
Comment 7 Gerrit Notification Bot 2013-08-13 13:53:31 UTC
Change 78078 merged by jenkins-bot:
Refactor SetAliasesTest

https://gerrit.wikimedia.org/r/78078

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links