2015-04-07 18:56:29 +00:00
|
|
|
<?php
|
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
2015-08-10 20:58:55 +00:00
|
|
|
// This source code is licensed under the BSD-style license found in the
|
|
|
|
// LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
// of patent rights can be found in the PATENTS file in the same directory.
|
2015-04-07 18:56:29 +00:00
|
|
|
|
|
|
|
class FacebookFbcodeUnitTestEngine extends ArcanistBaseUnitTestEngine {
|
|
|
|
|
|
|
|
public function run() {
|
|
|
|
// Here we create a new unit test "jenkins_async_test" and promise we'll
|
|
|
|
// update the results later.
|
|
|
|
// Jenkins updates the results using `arc call-conduit
|
|
|
|
// differential.updateunitresults` call. If you change the name here, also
|
|
|
|
// make sure to change the name in Jenkins script that updates the test
|
|
|
|
// result -- they have to be the same.
|
|
|
|
$result = new ArcanistUnitTestResult();
|
|
|
|
$result->setName("jenkins_async_test");
|
|
|
|
$result->setResult(ArcanistUnitTestResult::RESULT_POSTPONED);
|
|
|
|
return array($result);
|
|
|
|
}
|
|
|
|
}
|