[openstack-dev] The future of run_tests.sh

Clint Byrum clint at fewbar.com
Tue Jun 18 15:58:21 UTC 2013


Excerpts from Thierry Carrez's message of 2013-06-18 01:59:57 -0700:
> Joe Gordon wrote:
> > Reasons to keep run_tests.sh:
> > 
> > * there is no possibility to run tests with testtools instead of testr.
> > This feature allows us to use the debugger.
> > * in some projects tox doesn't use a testr wrapper to report progress
> > while tests are running 
> > * building the sdist can be slow (slow == noticeable)
> 
> It also makes unit testing easily discoverable. After a repo clone it's
> rather obvious that run_tests.sh will run tests. If you remove it,
> people have to go through some effort to discover and run "tox -epy27".
> 

Just to clarify, you're better off running 'tox'. Not having py26 around
is not an error, it will just be noted and skipped. This will also run
pep8 for you which is a fairly cheap operation and will catch any broken
formatting early. This works fine with a passed in test module as well
(though the global pep8 is still run w/o the arg)



More information about the OpenStack-dev mailing list