RUN ALL TEST

Ben Finney ben+python at benfinney.id.au
Wed Oct 30 02:58:49 EDT 2013


Chandru Rajendran <Chandru_Rajendran at infosys.com> writes:

> Hi all,

Welcome!

Please remove the mass of legalese nonsense (this is a public discussion
forum, your message is clearly not confidential), or use a mail system
which does not add that when discussing here.

> I am building my script. I want to run all the test scripts.

What version of Python are you using?

Test discovery is now a part of the standard library ‘unittest’ module
<URL:http://docs.python.org/3/library/unittest.html#unittest-test-discovery>.

If you are using Python earlier than version 2.7, you can use a
third-party module for adding test discovery to the standard test runner
<URL:https://pypi.python.org/pypi/unittest2>.

> Currently I am running the code "python setup.py test"

That invokes whatever the ‘setup.py’ defines as the test suite and
runner. You'll need to change that in order to get it to run the tests
differently.

-- 
 \        “I used to work in a fire hydrant factory. You couldn't park |
  `\                          anywhere near the place.” —Steven Wright |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list