Page MenuHomePhabricator

split test suite into tests which depend on a server, and those that do not
Closed, ResolvedPublic

Description

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.


Version: core-(2.0)
Severity: enhancement

Details

Reference
bz69068

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
Resolvedjayvdb
ResolvedXqt
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone
Resolvedjayvdb
ResolvedGeorggi1999
ResolvedNone
ResolvedNone
ResolvedRicordisamoa
ResolvedNone
ResolvedNone
ResolvedNone
Resolvedmurfel
ResolvedMpaa
ResolvedLadsgroup
ResolvedXZise
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedRicordisamoa
ResolvedRicordisamoa
ResolvedXqt
ResolvedXqt
ResolvedXqt
DeclinedNone
ResolvedNone
ResolvedXqt
ResolvedXqt
ResolvedXZise
ResolvedXqt
ResolvedXqt
ResolvedXqt
DeclinedBUG REPORTNone
ResolvedBUG REPORTXqt

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:31 AM
bzimport added a project: Pywikibot-tests.
bzimport set Reference to bz69068.
jayvdb created this task.Aug 3 2014, 11:21 AM

Running the scripts with -help should be possible without a working connection to the server, providing basic code coverage.

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!