visit-x/arc-phpunit

Arcanist util to run tests and generate code coverage reports for phpunit7 format.

0.1.0 2021-03-16 09:43 UTC

This package is auto-updated.

Last update: 2024-10-16 17:32:41 UTC


README

Installation

composer require visit-x/arc-phpunit

Configuration

  1. Load the library into phabricator:
// .arcconfig
"load": [
	...
	"./vendor/visit-x/arc-phpunit/src/phpunit-seven"
]
...
  1. Add config options for phpunit binary and phpunit.xml:
// .arcconfig
"unit.engine": "PHPUnit7Engine",
"unit.phpunit.binary": "./vendor/bin/phpunit",
"unit.phpunit.config": "./path/to/phpunit.xml",
"unit.phpunit.test-dirs": [
	"tests/some-folder",
	"tests/another-folder"
]
...

Run the unit test engine

arc unit