title: Running Python package unit tests in PyCharm
body: <p>I just 'ported' a Python package I'm writing to PyCharm and having a bit of trouble running unit tests for the whole package from the IDE.</p>
  <p>In <code>__init__.py</code> for the package I have <code>load_tests</code> function that goes over all modules in the package and loads relevant tests. It runs splendidly with:</p>
  <pre class="lang-none prettyprint-override"><code>$python -m unittest my_package
  </code></pre>
  <p>However, when I try running it from PyCharm (by selecting the top directory in the Projects window and hitting <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F10</kbd>) I get <code>No tests were found</code> in the Run window, and</p>
  <pre class="lang-none prettyprint-override"><code>...\python.exe ...\pycharm\utrunner.py .../my_package/ true
  Testing started at ...
  Process finished with exit code 0
  Empty test suite.
  </code></pre>
  <p>in the console window.</p>
  <p>I took a quick look at PyCharm's <code>utrunner.py</code> and it seems that it is looking for modules with a certain pattern (that start with <em>test</em>). I would like to preserve the present vanilla approach. How can I configure PyCharm to use <code>load_tests</code> from <code>__init__.py</code> while modifying the code as little as possible?</p>
  <p>By the way, test suites for individual modules run just fine from PyCharm.</p>
  <p>Using PyCharm 3.1 Community Edition, Python 2.7.</p>