]> khamidou — GitHub mirrors - arcanist.git/commit
Allow skipping unit tests and support 'repeat' workflow arguments
authorvrana <jakubv@fb.com>
Fri, 8 Jun 2012 00:02:56 +0000 (17:02 -0700)
committervrana <jakubv@fb.com>
Fri, 8 Jun 2012 00:42:49 +0000 (17:42 -0700)
commit6433f7ff3d35ef364df615c3c1d818a89edaccfc
tree18cb1776aa726878f375cab6141118d350d372a8
parent6aa621ebeec54e2c038b002e70ee26d467ea7b4e
Allow skipping unit tests and support 'repeat' workflow arguments

Summary:
We run all tests before deploy but some of them are expected to fail.
We need to skip them.
It can be useful also for someone else.

I don't propagate this to `arc diff` as that would be much more complicated - we would need a new state 'partially skipped'.

The 'path' argument needs to be a file, skipping whole dirs is not supported.
The 'path' argument is in fact engine specific and engines can support format like 'Class::testMethod' but I didn't bother to document it to not confuse people.

Test Plan:
`arc unit --skip test.php`
`arc unit --skip ../src/test.php`

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D2673
src/unit/engine/ArcanistBaseUnitTestEngine.php
src/unit/engine/PhutilUnitTestEngine.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistUnitWorkflow.php