Item12727: Allow a contrib to contribute unit test setup

pencil
Priority: Enhancement
Current State: Needs Developer
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UnitTestContrib
Branches: Release01x01 trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: MichaelDaum
Some Contribs have requirements in the configuration that must be met. For example, the DBIStore requires a plugin to be enabled - however the default unit test environment blows this configuration away with all the other plugins.

The simple solution is to allow Contribs to contribute to the unit test setup, by providing a module in the contrib dir called UnitTestSetup.pm. This will contain a single function, set_up, that will always be run when the contrib is installed in a system being unit-tested.

Skin contribs, for example, might use this scheme to enable required but non-standard plugins.

-- CrawfordCurrie - 22 Jan 2014

Needs a new developer

-- MichaelDaum - 28 Sep 2020
 

ItemTemplate edit

Summary Allow a contrib to contribute unit test setup
ReportedBy CrawfordCurrie
Codebase 1.1.9, trunk
SVN Range
AppliesTo Extension
Component UnitTestContrib
Priority Enhancement
CurrentState Needs Developer
WaitingFor
Checkins distro:b9f635eb226e distro:727ced19306f
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:727ced19306f
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins distro:b9f635eb226e
Topic revision: r4 - 28 Sep 2020, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy