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


Groups > comp.lang.python > #58007

Re: RUN ALL TEST

Path csiph.com!usenet.pasdenom.info!news.franciliens.net!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'third- party': 0.04; 'defines': 0.09; 'differently.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'setup.py': 0.09; 'python': 0.11; '"python': 0.16; 'finney': 0.16; 'invokes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scripts.': 0.16; 'discussion': 0.18; 'library': 0.18; 'all,': 0.19; 'module': 0.19; 'tests': 0.22; 'header:User- Agent:1': 0.23; 'script.': 0.24; 'earlier': 0.24; 'header:X -Complaints-To:1': 0.27; '(this': 0.29; 'code': 0.31; 'discovery': 0.31; 'wright': 0.31; 'writes:': 0.31; 'run': 0.32; 'url:python': 0.33; 'running': 0.33; 'anywhere': 0.35; 'test': 0.35; 'add': 0.35; 'building': 0.35; 'version': 0.36; 'mass': 0.36; 'park': 0.36; 'url:org': 0.36; 'ben': 0.38; 'url:library': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'remove': 0.60; 'url:3': 0.61; "you'll": 0.62; 'fire': 0.65; 'skip:\xe2 10': 0.65; '8bit%:43': 0.74
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: RUN ALL TEST
Date Wed, 30 Oct 2013 17:58:49 +1100
References <F9D8DC52CB96E24D8C7AA5F8E9781E881E3EE7F5@BLRKECMBX23.ad.infosys.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host rasputin.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:EhLo2eo7GhGyaI9W1xuC6BPSPFw=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1795.1383116342.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383116342 news.xs4all.nl 15978 [2001:888:2000:d::a6]:35848
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58007

Show key headers only | 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