]> khamidou — GitHub mirrors - arcanist.git/commit
Allow `PhutilUnitTestEngine::getTestsForPaths` to return paths from the library root...
authorJoshua Spence <josh@joshuaspence.com>
Thu, 9 Jan 2014 13:21:55 +0000 (05:21 -0800)
committerepriestley <git@epriestley.com>
Thu, 9 Jan 2014 13:21:55 +0000 (05:21 -0800)
commit66e3614f6934fc471e1ba48b310f6865b2f75a07
treed77f2f98db8a5d67641b4acf5f02940980b94ca5
parente2234a5be96a5512929df8f45c43e1706864ac8c
Allow `PhutilUnitTestEngine::getTestsForPaths` to return paths from the library root directory

Summary: Currently, running `arc unit -- src/` returns with `No tests to run`, even if there are test classes in `src/__tests__/`. This diff changes this behaviour so that `arc unit -- src/` executes unit tests in `src/__tests__/`.

Test Plan: N/A. I suppose you could create a file `src/__tests__/SomeTestCase.php` and see for yourself.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D7915
src/unit/engine/PhutilUnitTestEngine.php