title: Automatically running PHPUnit tests with Arcanist (Phabricator)
body: <p>A "simple" question: how can I automatically run PHPunit tests with Arcanist?</p>
  
  <p>According to the <a href="https://secure.phabricator.com/book/phabcontrib/article/unit_tests/" rel="nofollow">documentation</a> I should first load a custom library. As stated <a href="https://secure.phabricator.com/book/phabricator/article/arcanist_lint_unit/" rel="nofollow">here</a> I should create a <code>.arcconfig</code> file and load the appropriate library.</p>
  
  <p>So: I've create a dir "arc_libs" in my project and in the dir "src" I used <code>arc liberate</code> to generate the needed files. My config is now:</p>
  
  <pre><code>{
    "project.name" : "arc_libs",
    "phabricator.uri" : "https://phabricator.xxx.xxx.net/",
    "unit.engine" : "PhpunitTestEngine",
    "load" : ["arc_libs/src"]
  }
  </code></pre>
  
  <p>The libary DOES get loaded because I can run <code>arc unit</code></p>
  
  <pre><code>[matthijs@xx xxx]$ arc unit
  No tests to run.
  </code></pre>
  
  <p>But as you can see there are no tests to run. We keep our tests in "project_root/tests" and as far as I understand the <a href="https://secure.phabricator.com/book/phabcontrib/article/unit_tests/" rel="nofollow">documentation</a> I should create a __tests__ dir in "the module" (probably my arc_libs dir ?)</p>
  
  <p>However I want to run my existing PHPunit test files, not new tests I need to create. I tried using a symlink etc but I cannot get it to work. Arcanist doesn't detect my tests.</p>
  
  <p>So my question: How can I automatically run my EXISTING PHPunit tests with arcanist?</p>
  
  <p>(note we use <code>arc diff</code> that should run <code>arc unit</code> automatically)</p>