This is more of nose specific question that is probably more appropriate at <a href="http://groups.google.com/group/nose-users">http://groups.google.com/group/nose-users</a>.<br><br>Anyway, I think what you want is the testconfig plugin. <a href="http://pypi.python.org/pypi/nose-testconfig/">http://pypi.python.org/pypi/nose-testconfig/</a><br>
<br clear="all">-John<br><br>512-791-3457<br><a href="mailto:john@minne.org">john@minne.org</a><br>
<br><br><div class="gmail_quote">On Sat, May 29, 2010 at 2:00 PM, <span dir="ltr"><<a href="mailto:testing-in-python-request@lists.idyll.org">testing-in-python-request@lists.idyll.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send testing-in-python mailing list submissions to<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:testing-in-python-request@lists.idyll.org">testing-in-python-request@lists.idyll.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:testing-in-python-owner@lists.idyll.org">testing-in-python-owner@lists.idyll.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of testing-in-python digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. override setup.cfg values in nosetests (Brad Allen)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 28 May 2010 16:56:51 -0500<br>
From: Brad Allen <<a href="mailto:bradallen137@gmail.com">bradallen137@gmail.com</a>><br>
Subject: [TIP] override setup.cfg values in nosetests<br>
To: TesttingInPython <<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>><br>
Message-ID:<br>
<<a href="mailto:AANLkTinyI1rVpby6jio7npRh8QoHU0ybfg6c3_qe64ev@mail.gmail.com">AANLkTinyI1rVpby6jio7npRh8QoHU0ybfg6c3_qe64ev@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi,<br>
<br>
I'm looking for a way when running nosetests to override the values in<br>
the config file using command line arguments. After digging in the<br>
docs, and looking at nosetests --help, I couldn't find anything<br>
obvious discussing this.<br>
<br>
I have a setup.cfg which contains the following:<br>
<br>
[nosetests]<br>
tests = tests<br>
<br>
This causes nose to find all my tests, which is great most of the<br>
time, but annoying when I want to specify a subdirectory or an<br>
individual test module. For example, when I run the command "nosetests<br>
tests/somedir", nose runs all the tests, not just the ones under<br>
tests/somedir.<br>
<br>
Is there any command line flag to override this (other than '-c' to<br>
specify a different config file)?<br>
<br>
Thanks, and sorry if I missed something in the docs somewhere.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br>
<br>
End of testing-in-python Digest, Vol 40, Issue 15<br>
*************************************************<br>
</blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>