Defined Type: mediawiki::extension::browsertests

Defined in:
puppet/modules/mediawiki/manifests/extension/browsertests.pp

Overview

Define: mediawiki::extension::browsertests

This resource type installs the dependencies necessary to execute browser tests for a MediaWiki extension.

Parameters

path

Path to test suite inside of extension directory. If set to false or true, will default to 'tests/browser'.

Parameters:

  • path (Any) (defaults to: false)


11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'puppet/modules/mediawiki/manifests/extension/browsertests.pp', line 11

define mediawiki::extension::browsertests(
    $path = false,
) {
    $dir = $path ? {
        true    => 'tests/browser', # b/c with mediawiki::extension
        false   => 'tests/browser',
        default => $path,
    }

    ::browsertests::bundle { "${title}_browsertests_bundle":
        directory => "${mediawiki::dir}/extensions/${title}/${dir}",
    }
}