Phpunit Junit test engine for Arcanist and Phabricator
A unit test engine that is essentially forked from the original phpunit test engine that is bundled with Phabricator. This specific engine supports the latest version of phpunit and the cli option of --log-junit
--log-json
, which is required by the existing phpunit test engine in Phabricator is not supported after PHPUnit 6. See Background Here and this version makes use of --log-junit
This new engine is a drop-in replacement that supports the latest versions of phpunit
This requires phpunit
and arcanist
to be installed locally
- Clone this repo somewhere in your path
- In the repo you want to run unit tests from, edit the
.arcconfig
file with settings like the following
{
...
"unit.engine": "PhpunitJunitTestEngine",
"unit.phpunit.binary": "./vendor/bin/phpunit",
"load": [
....
"phpunitjunittestengine/src"
]
}
A note on these settings
"unit.engine": "PhpunitJunitTestEngine"
this is the new name of the engine"unit.phpunit.binary": "./vendor/bin/phpunit",
we use composer, so phpunit is inside the vendor dir. If it is somewhere else, then specify that"load": [ .... "phpunitjunittestengine/src" ]
- If this does not work, specify the full path e.g./usr/local/src/phpunitjunittestengine/src
All source code is licensed under the Apache 2.0 license, the same license as for the Arcanist project.
Lucit is the company behind Layout : The application that connects big-ticket inventory applications (Automotive, Ag, Rec, Real Estate) to digital billboards, in real-time.
We stream inventory - direct, in real-time to digital billboards, anywhere. https://lucit.cc