<div dir="ltr"><div><div><div><div>I am not sure if I understood your question entirely, so correct me if necessary.<br><br>This is the source code I supposed:<br><a href="https://svn.apache.org/repos/asf/bloodhound/trunk/">https://svn.apache.org/repos/asf/bloodhound/trunk/</a><br>
<br></div>I&#39;ve looked at the structure a bit and found that you currently have tests under each product/package (for example, <a href="https://svn.apache.org/repos/asf/bloodhound/trunk/bloodhound_dashboard/bhdashboard/">https://svn.apache.org/repos/asf/bloodhound/trunk/bloodhound_dashboard/bhdashboard/</a>), also see <a href="https://svn.apache.org/repos/asf/bloodhound/trunk/bloodhound_dashboard/setup.py">https://svn.apache.org/repos/asf/bloodhound/trunk/bloodhound_dashboard/setup.py</a>)<br>
<br></div>I believe this means tests is also included in the package installation (when you run setup.py)<br><br></div>I prefer not to do that. I prefer to have my test folder next to setup.py. This means I shouldn&#39;t be importing bhdashboard.tests.test_xxxx   and there is no reason to import that.<br>
<br></div><div>Should you combine all tests in a single directory? Examples:<br><a href="https://svn.apache.org/repos/asf/bloodhound/trunk/tests">https://svn.apache.org/repos/asf/bloodhound/trunk/tests</a><br><a href="https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/">https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/</a><br>
<a href="https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/unittest">https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/unittest</a><br><a href="https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/functional">https://svn.apache.org/repos/asf/bloodhound/trunk/tests/product1/functional</a><br>
</div><div>and so on<br><br></div><div>I wouldn&#39;t do that. Each python package (I go by product1, product2, product3 here) should have its own tests directory (sits next to setup.py). If two packages share a lot of test utilities scripts (I call them test drivers), consider making those utilities into separate python package.<br>
<br></div><div>That&#39;s just me. Most of my projects will end up in some PyPI data store (public or private) so I have a good reason to keep test folder separate.<br><br></div></div>