]> khamidou — GitHub mirrors - arcanist.git/commit
When running phutil tests from "arc unit", trigger __tests__ in all parent
authorepriestley <git@epriestley.com>
Fri, 18 Nov 2011 19:27:55 +0000 (11:27 -0800)
committerepriestley <git@epriestley.com>
Sun, 20 Nov 2011 22:21:46 +0000 (14:21 -0800)
commit994163d9ca9190b67e3ae5d66bd1ce179660c492
tree195e100d66874a7f1a5cad3fbc9b09889d48cda2
parent18773682c7554c5b6af072b25757ef48b917271a
When running phutil tests from "arc unit", trigger __tests__ in all parent
modules

Summary:
Right now, if you add a file to "__tests__/data/blah.testcase" it doesn't
trigger those __tests__, but it should. Trigger __tests__ in all parent modules
when a file changes.

(We could be a little more complex about choosing what to run but all the tests
are super fast so it hardly matters if we run "too many" tests.)

Test Plan: Ran "arc unit" on this, got a test trigger. Added a file to a
__tests__/data/ directory and got a test trigger. Added some var_dump() and
spot-checked things for sanity.

Reviewers: btrahan, jungejason, nh, tuomaspelkonen, aran

Reviewed By: jungejason

CC: aran, jungejason
Differential Revision: 1127
src/unit/engine/phutil/PhutilUnitTestEngine.php