[TIP] testing-in-python Digest, Vol 40, Issue 15
John Minne
john.minne at gmail.com
Sat May 29 14:28:38 PDT 2010
This is more of nose specific question that is probably more appropriate at
http://groups.google.com/group/nose-users.
Anyway, I think what you want is the testconfig plugin.
http://pypi.python.org/pypi/nose-testconfig/
-John
512-791-3457
john at minne.org
On Sat, May 29, 2010 at 2:00 PM,
<testing-in-python-request at lists.idyll.org>wrote:
> Send testing-in-python mailing list submissions to
> testing-in-python at lists.idyll.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.idyll.org/listinfo/testing-in-python
> or, via email, send a message with subject or body 'help' to
> testing-in-python-request at lists.idyll.org
>
> You can reach the person managing the list at
> testing-in-python-owner at lists.idyll.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of testing-in-python digest..."
>
>
> Today's Topics:
>
> 1. override setup.cfg values in nosetests (Brad Allen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 28 May 2010 16:56:51 -0500
> From: Brad Allen <bradallen137 at gmail.com>
> Subject: [TIP] override setup.cfg values in nosetests
> To: TesttingInPython <testing-in-python at lists.idyll.org>
> Message-ID:
> <AANLkTinyI1rVpby6jio7npRh8QoHU0ybfg6c3_qe64ev at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I'm looking for a way when running nosetests to override the values in
> the config file using command line arguments. After digging in the
> docs, and looking at nosetests --help, I couldn't find anything
> obvious discussing this.
>
> I have a setup.cfg which contains the following:
>
> [nosetests]
> tests = tests
>
> This causes nose to find all my tests, which is great most of the
> time, but annoying when I want to specify a subdirectory or an
> individual test module. For example, when I run the command "nosetests
> tests/somedir", nose runs all the tests, not just the ones under
> tests/somedir.
>
> Is there any command line flag to override this (other than '-c' to
> specify a different config file)?
>
> Thanks, and sorry if I missed something in the docs somewhere.
>
>
>
> ------------------------------
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
>
> End of testing-in-python Digest, Vol 40, Issue 15
> *************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20100529/0764bf25/attachment.html>
More information about the testing-in-python
mailing list