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


Groups > comp.lang.python > #58007 > unrolled thread

Re: RUN ALL TEST

Started byBen Finney <ben+python@benfinney.id.au>
First post2013-10-30 17:58 +1100
Last post2013-10-30 17:58 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#58007 — Re: RUN ALL TEST

FromBen Finney <ben+python@benfinney.id.au>
Date2013-10-30 17:58 +1100
SubjectRe: RUN ALL TEST
Message-ID<mailman.1795.1383116342.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web