Skip to content

Arcanist extension - phpunit7 test engine and result parser

Notifications You must be signed in to change notification settings

VISIT-X/arc-phpunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arcanist phpunit [v7+]

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