Skip to content

Commit 41deebc

Browse files
malbertsclaude
andcommitted
Use --group filter for MW master phpunit run
The previous -c extensions/Bootstrap/ flag made PHPUnit load Bootstrap's phpunit.xml.dist, which has no bootstrap directive, so MediaWiki was never initialised and $GLOBALS['wgResourceModules'] was undefined when BootstrapManagerTest read it. Drop -c so MW's generated phpunit.xml (which wires up tests/phpunit/bootstrap.php) is used, and filter to Bootstrap tests via their @group annotation. Mirrors the Chameleon CI pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 36beb37 commit 41deebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ jobs:
9797
wget -q -O phpunit.xml.template "https://raw.githubusercontent.com/wikimedia/mediawiki/${{ matrix.mw }}/phpunit.xml.template"
9898
fi
9999
composer phpunit:config
100-
vendor/bin/phpunit -c extensions/Bootstrap/
100+
vendor/bin/phpunit --group extension-bootstrap

0 commit comments

Comments
 (0)