https://bugzilla.wikimedia.org/show_bug.cgi?id=69070
Bug ID: 69070 Summary: Allow tests to be run against a selected site where possible Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
The tests are often hardcoded to use a specific site, even when this isnt necessary. e.g. most of site_tests are generic tests which could work on any site (including a localhost site).
As the travis-ci builds are now run against three different sites in the config, changing these tests to use the config selected site increases the variability of the testing achieved.
However the tests also need to be able to be run with a different site selected to that of the config. i.e. config = ar.wikipedia & testsite = en.wikipedia , config = en.wikipedia & testsite = ar.wikipedia, and all other combinations which might be helpful in showing a gnarly bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69070
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |56961
https://bugzilla.wikimedia.org/show_bug.cgi?id=69070
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- First hack at it. https://gerrit.wikimedia.org/r/#/c/151408/
Before this is closed, we'll need specific unittest classes to indicate how transportable the tests are, something like: https://gerrit.wikimedia.org/r/#/c/138225/
https://bugzilla.wikimedia.org/show_bug.cgi?id=69070
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW CC| |hashar@free.fr
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- https://gerrit.wikimedia.org/r/#/c/151604/
https://bugzilla.wikimedia.org/show_bug.cgi?id=69070
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org