Hi everyone,<br /><br />This is my first post to python-testing, so please forgive me if I&#39;m asking a question which has already been answered. I&#39;ve tried looking for solutions to this problem online, but have only found half-answers.<br /><br />Anyhow, my question is: What is the best way to integrate nose / coverage tests with my python package using setuptools?<br /><br />Basically, I have a module which I&#39;d like to distribute using setuptools and PyPI (pretty typical stuff). My directory tree looks like: http://pastie.org/private/trftwzclq6jgx2di73rttg<br /><br />Currently, if I want to run tests with nose, I do it from within the root `pycall` directory, and I run:<br /><br />nosetests --with-doctest --doctest-extension=txt --with-coverage --cover-erase -v<br /><br />What I&#39;m trying to do is be more modular, and test my entire python package at once. So I was reading more about setuptools, and discovered that setuptools has several test options that can be specified to run tests when installing the package. However, I can&#39;t figure out how (or why) I should use those options.<br /><br />Basically, I want my fully distributable python package to be able to:<br /><br />1. Run all tests with nose before the package is installed. This should verify that everything works as expected before the package can be installed on a user&#39;s box.<br />2. Allow other developers to install my module, and instantly have a development environment setup so that they can work on the project without any hassle.<br />3. Allow for some sort of easy-to-use continuous integration program like buildbot or tox to auto build my module and run my tests whenever I check code into my version control system.<br /><br />What is the best way for me to do this?<br /><br />Thanks so much, sorry if my question is a bit jumbled about.