Last modified: 2014-08-19 14:12:30 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 T71068, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69068 - split test suite into tests which depend on a server, and those that do not
split test suite into tests which depend on a server, and those that do not
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Unprioritized enhancement
: ---
Assigned To: John Mark Vandenberg
:
Depends on: pwb_script_tests
Blocks: 50344
  Show dependency treegraph
 
Reported: 2014-08-03 11:21 UTC by John Mark Vandenberg
Modified: 2014-08-19 14:12 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-08-03 11:21:31 UTC
After a discussion with Legoktm and hashar about jenkins running tests on bug 50344 and IRC, the first step is to run tests which do not depend on a mediawiki site.
Comment 1 John Mark Vandenberg 2014-08-03 11:33:48 UTC
Running the scripts with -help should be possible without a working connection to the server, providing basic code coverage.
Comment 2 John Mark Vandenberg 2014-08-04 10:19:16 UTC
https://gerrit.wikimedia.org/r/#/c/151604/
Comment 3 Antoine "hashar" Musso (WMF) 2014-08-19 14:12:30 UTC
The patch has been merged.  Tests hitting sites have a 'site' attribute and the ones in need of network access a 'net' attribute.

For the record:

https://gerrit.wikimedia.org/r/#/c/151604/ brings all the attribute logic, adds 'site' and filter tests to not run them (nosetests -a '!site').

https://gerrit.wikimedia.org/r/#/c/152276/ flagged httplib tests with 'net' and have them filtered out.


Thank you John!

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


Navigation
Links