@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3/**
4 * Custom engine to run the celerity map tests on CSS or JS pages
5 */
6final class CelerityUnitTestEngine extends ArcanistUnitTestEngine {
7
8 public function getEngineConfigurationName() {
9 return 'celerity';
10 }
11
12 protected function supportsRunAllTests() {
13 return true;
14 }
15
16 public function run() {
17 if ($this->getRunAllTests() || $this->getPaths()) {
18 $test_case = new PhabricatorCelerityTestCase();
19 $test_case->willRunTestCases(array($test_case));
20 $test_case->setWorkingCopy($this->getWorkingCopy());
21 if ($this->renderer) {
22 $test_case->setRenderer($this->renderer);
23 }
24 $result = $test_case->run();
25 $test_case->didRunTestCases(array($test_case));
26 return $result;
27 }
28 return array();
29 }
30
31 }