Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58007

Re: RUN ALL TEST

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: RUN ALL TEST
Date 2013-10-30 17:58 +1100
References <F9D8DC52CB96E24D8C7AA5F8E9781E881E3EE7F5@BLRKECMBX23.ad.infosys.com>
Newsgroups comp.lang.python
Message-ID <mailman.1795.1383116342.18130.python-list@python.org> (permalink)

Show all headers | View raw


Chandru Rajendran <Chandru_Rajendran@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: RUN ALL TEST Ben Finney <ben+python@benfinney.id.au> - 2013-10-30 17:58 +1100

csiph-web