]> khamidou — GitHub mirrors - arcanist.git/commit
Automatically use the configuration driven unit test engine
authorJoshua Spence <josh@joshuaspence.com>
Mon, 10 Aug 2015 21:55:38 +0000 (07:55 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 10 Aug 2015 21:55:57 +0000 (07:55 +1000)
commite4caf1a7d94f72718aa7908ade73d29c895f48df
tree36939c85ee29f13b197ed531ee1a76cab4950c9e
parent504ff426818898a25c13a597392c7451e73a447e
Automatically use the configuration driven unit test engine

Summary: Ref T5568. Use the `ArcanistConfigurationDrivenUnitTestEngine` automatically, if an `.arcunit` file exists. This behavior mimics the auto-detection for the configuration driven lint engine.

Test Plan:
Ran through the following scenarios:

  - Ran `arc unit` and saw unit tests execute.
  - Ran `arc unit --engine PhutilUnitTestEngine`
  - Remove the `.arcunit` file and ran `arc unit`... got an exception.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T5568

Differential Revision: https://secure.phabricator.com/D13855
.arcconfig
src/workflow/ArcanistUnitWorkflow.php
src/workflow/ArcanistWorkflow.php