Krinkle has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/330366 )
Change subject: build: Add phpunit config file, enable phpcs in composer-test ...................................................................... build: Add phpunit config file, enable phpcs in composer-test * phpcs wasn't run on CI, add it. Matching other lib repos. * Move phpunit config to a file. Matching other lib repos. Right now the coverage report is broken because it invokes 'phpunit --coverage-html cover/' but fails due to a missing directory argument, and would not disable globals-backup either (slowing it down). Change-Id: Ib6cc8aecbcc8ebd5e574d6d47b9cc5521dd7c99d --- M composer.json A phpunit.xml.dist 2 files changed, 17 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/libs/RemexHtml refs/changes/66/330366/1 diff --git a/composer.json b/composer.json index 9f56fe4..78a2ca3 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,10 @@ } }, "scripts": { - "test": "phpunit --no-globals-backup tests/phpunit", - "phpcs": "phpcs -s src" + "test": [ + "phpunit", + "phpcs -p" + ], + "phpcs": "phpcs -s" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..6063fba --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,12 @@ +<phpunit backupGlobals="false"> + <testsuites> + <testsuite name="RemexHtml Tests"> + <directory>./tests/phpunit</directory> + </testsuite> + </testsuites> + <filter> + <whitelist addUncoveredFilesFromWhitelist="true"> + <directory suffix=".php">./src</directory> + </whitelist> + </filter> +</phpunit> -- To view, visit https://gerrit.wikimedia.org/r/330366 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib6cc8aecbcc8ebd5e574d6d47b9cc5521dd7c99d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/libs/RemexHtml Gerrit-Branch: master Gerrit-Owner: Krinkle <krinklem...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits