HomePhabricator

Run any shell command inside Quibble test env
33ed81e9ceb9Unpublished

Authored by hashar on Jul 23 2018, 2:53 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Run any shell command inside Quibble test env

To generate per patch code coverage, all built-in test commands should
be skipped and replaced by arbitrary shell commands. Eg:

cd extensions/Foobar
phpunit-patch-coverage check \
  --command "php -d zend_extension=xdebug.so ../../tests/phpunit/phpunit.php" \
  --html /tmp/coverage-Foobar.html

I still need Quibble to do the installation and spawn the backends. But
built-in commands should be skip entirely (--skip=all).

Add a '--user-commands' switch that lets one execute shell commands
AFTER all stages have been run. Each is run in its own shell relatively
to MediaWiki installation path.

Bug: T195084
Bug: T195918
Change-Id: I4c85cc2ee43a749147670b5800c7050c05188476

Details

Committed
hasharJul 23 2018, 3:06 PM
Parents
rQUIBBLEdf08571f80c7: Add --skip=all to skip all tests
Branches
Unknown
Tags
Unknown
References
refs/changes/49/447449/1
ChangeId
I4c85cc2ee43a749147670b5800c7050c05188476