1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32:41 +01:00
phorge-arcanist/src
sten 7c5e607e97 Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json.
Summary:
This change updates PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use phpunit's junit output rather than json.

--log-json was deprecated in PHPUnit 5.7, and removed in PHPUnit 6.0.0 (2017-02-03).

Fixes T15667

Test Plan:
Download an example PHP repo, with arcconfig set to 'PhpunitTestEngine'. Example:
```
git clone https://github.com/campbsb/example-phorge-php-project.git
```

Install phpunit using composer, and test it
```
cd example-phorge-php-project
php ~/composer.phar update
phpunit
```
In a PHP phorge repo, set the following in .arcconfig:
```
    "unit.engine": "PhpunitTestEngine",
    "phpunit_config": "phpunit.xml",
```
Make a non-breaking change to src/Service.php (eg add a space), and run 'arc unit'

Reviewers: O1 Blessed Committers, avivey, speck

Reviewed By: O1 Blessed Committers, avivey, speck

Subscribers: avivey, Ekubischta, speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15667

Differential Revision: https://we.phorge.it/D25472
2024-03-15 16:09:16 +00:00
..
__tests__ Catch more product names in "pht()", and replace newly matched Arcanist product names 2022-04-25 16:45:55 -07:00
browse Improve arc-browse for php 8.1 2023-07-07 09:16:59 -07:00
channel Move Phage to FuturePool 2020-04-05 05:56:21 -07:00
conduit Remove all product name literals in "pht()" in Arcanist 2022-04-25 12:21:31 -07:00
config Remove all product name literals in "pht()" in Arcanist 2022-04-25 12:21:31 -07:00
configuration Catch more product names in "pht()", and replace newly matched Arcanist product names 2022-04-25 16:45:55 -07:00
console Mostly remove "STDERR" and "STDOUT" constants from Arcanist 2022-05-03 11:58:45 -07:00
difference Fix an initialization issue in VectorTree 2020-05-04 15:50:26 -07:00
differential Catch more product names in "pht()", and replace newly matched Arcanist product names 2022-04-25 16:45:55 -07:00
docs Update Diviner documentation to reference Phorge instead of Phabricator for Arcanist. 2021-06-19 18:46:39 -06:00
engine Implement "arc work", to replace "arc feature" 2020-06-08 16:27:27 -07:00
error PhutilErrorHandler: support multiple error listeners 2023-11-27 20:32:12 +02:00
events Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
exception Provide some "preg_*" wrappers which raise exceptions on failure 2021-02-19 11:16:09 -08:00
extensions Changes to Arcanist for libphutil "extensions/" 2013-04-22 14:38:49 -07:00
filesystem T15064: Several arcanist PHP 8.1 compat issues on Windows 2024-02-06 06:56:39 -05:00
future Fix PHP 8.1 "urlencode(null)" exception blocking account registration redirect for custom OAuth provider 2023-12-04 19:28:25 -08:00
hardpoint Fix additional "xsprintf()"-family static parameter errors 2020-09-08 11:45:54 -07:00
hgdaemon Fix a property name collision in ArcanistHgServerChannel 2017-02-16 05:44:10 -08:00
init Replace all phurl.io short URIs with target URIs 2024-02-28 14:59:26 +01:00
inspector Support inspection of remote refs with "arc inspect remote(...)" 2020-06-30 13:07:25 -07:00
internationalization Add "pht_list()", a translation wrapper for lists of items 2022-05-12 10:57:39 -07:00
ip Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
land Update other usages of "hg rebase" to use the new extension-enabling function 2021-07-21 17:11:25 -04:00
lexer Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
lint Fix ArcanistExternalLinter on Windows 2023-12-04 22:44:29 +01:00
log Mostly remove "STDERR" and "STDOUT" constants from Arcanist 2022-05-03 11:58:45 -07:00
moduleutils only update cache file if something changed 2023-10-12 19:21:56 +03:00
object Correct some Arcanist behaviors under PHP8.1 2021-12-09 13:44:31 -08:00
parser Correct manual upload of Differential patch with a leading BOM 2024-01-13 22:05:47 +01:00
phage Allow "phage" to print execution status on SIGINT 2020-04-06 11:09:43 -07:00
platform Rebrand: Add "path" entries to PlatformSymbols 2023-08-12 08:41:53 -07:00
progress Mostly remove "STDERR" and "STDOUT" constants from Arcanist 2022-05-03 11:58:45 -07:00
query Provide "gitsprintf(...)" and disambiguate Git ref selectors 2021-01-13 12:31:15 -08:00
readableserializer Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
ref Improve arc-browse for php 8.1 2023-07-07 09:16:59 -07:00
repository Fix a PHP 8.1 issue related to preg_match() and null subject 2023-04-14 22:13:04 +02:00
runtime Replace all phurl.io short URIs with target URIs 2024-02-28 14:59:26 +01:00
serviceprofiler Provide additional Arcanist PHP 8.1 fixes 2021-12-09 16:42:19 -08:00
symbols Mostly remove "STDERR" and "STDOUT" constants from Arcanist 2022-05-03 11:58:45 -07:00
toolset Fix tab complete in php 8 2023-07-21 09:45:55 -07:00
unit Update PhpunitTestEngine.php and ArcanistPhpunitTestResultParser.php to use junit output rather than json. 2024-03-15 16:09:16 +00:00
upload Mostly remove "STDERR" and "STDOUT" constants from Arcanist 2022-05-03 11:58:45 -07:00
utils Update PhutilCowsay.php to work for small cows 2023-11-14 15:05:33 +00:00
work Update "arc land" display of build failures, and rename "DisplayRef" to "RefView" 2020-06-30 06:27:56 -07:00
workflow Fix Subversion "commit" support in PHP 8.1 2023-12-18 11:37:41 +01:00
workingcopy Introduce "arc inspect" and some of the new ref/hardpoint classes 2020-04-10 05:01:25 -07:00
workingcopyidentity T15064: Several arcanist PHP 8.1 compat issues on Windows 2024-02-06 06:56:39 -05:00
xsprintf Fix PHP 8.1 "strpos(null)" exception from PhutilCommandString which blocks arc patch 2023-05-09 08:29:00 +02:00
__phutil_library_init__.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
__phutil_library_map__.php Add "pht_list()", a translation wrapper for lists of items 2022-05-12 10:57:39 -07:00