]> khamidou — GitHub mirrors - arcanist.git/commit
Render unit results progressively
authorvrana <jakubv@fb.com>
Wed, 27 Feb 2013 21:59:12 +0000 (13:59 -0800)
committervrana <jakubv@fb.com>
Thu, 28 Feb 2013 23:33:21 +0000 (15:33 -0800)
commit2e87419c7bd5d0e57926b93065d11f9ea872766e
tree93537646f5f96782a2238b6e7afc895d97848f2f
parent8412f7cfd78188febfd1a85fbebf2d9395570ccf
Render unit results progressively

Summary:
Some tests take longer (fixtures usually around 1 second for me) and also FB runs all tests on deploy.
I want to see all results immediately.

Test Plan:
Added `usleep(200000)` to `resultTest()`, then:

  $ arc unit
  Saw results printed one by one.

Also didn't pass `$renderer` to `ArcanistPhutilTestCase` and saw empty output.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5141
src/__phutil_library_map__.php
src/unit/ArcanistUnitTestResult.php
src/unit/engine/ArcanistBaseUnitTestEngine.php
src/unit/engine/PhutilUnitTestEngine.php
src/unit/engine/phutil/ArcanistPhutilTestCase.php
src/unit/renderer/ArcanistUnitConsoleRenderer.php [new file with mode: 0644]
src/unit/renderer/ArcanistUnitRenderer.php [new file with mode: 0644]
src/workflow/ArcanistUnitWorkflow.php