yui/yogi — pull request #96 by popox (2014-03-06 09:58:34+00:00)
Title: Launching tests from a sub-project that doesn't have a gitroot

__Hello!__

I was trying to launch my test suites of a yui project with yogi lately, and had no tests launch. Therefore I took a look inside the test resolver inside yogi. I found out that the current code searches for tests in the ```/src/``` directory.

The problem here is that if you have sub-projects inside on git repo, it will search for test at the git root, but not at the package root. Therefor this PR searches for the closest ```package.json``` and resolves the base path from there. If no package.json is found, it folds back to the current code (the gitroot).

Let me know if this is you'd like to integrate into yogi.