Last modified: 2014-09-10 12:16:58 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 T71070, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69070 - Allow tests to be run against a selected site where possible
Allow tests to be run against a selected site where possible
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: 56961
  Show dependency treegraph
 
Reported: 2014-08-03 13:05 UTC by John Mark Vandenberg
Modified: 2014-09-10 12:16 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-08-03 13:05:22 UTC
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.
Comment 1 John Mark Vandenberg 2014-08-04 02:46:17 UTC
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/
Comment 2 John Mark Vandenberg 2014-08-04 10:17:48 UTC
https://gerrit.wikimedia.org/r/#/c/151604/

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


Navigation
Links