Item12727: Allow a contrib to contribute unit test setup
Priority: Enhancement
Current State: Needs Developer
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UnitTestContrib
Branches: Release01x01 trunk
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