<div class="markdown">
<p dir="auto">Thanks, Rob,</p>

<p dir="auto">I got this working by passing in <code>tests_require</code> as an env var joined by <code>\n</code>. That worked when in-lining the env var in <code>deps=</code>.</p>

<p dir="auto">Thanks,<br>
Alyssa</p>

<p dir="auto">On 29 Nov 2015, at 0:04, Robert Collins wrote:</p>

<blockquote>
<p dir="auto">On 29 November 2015 at 17:05, Alyssa Kwan <a href="mailto:me@alyssackwan.name">me@alyssackwan.name</a> wrote:</p>

<blockquote>
<p dir="auto">Hi all,</p>

<p dir="auto">Apologies if this has been covered before. I've looked high and low and<br>
can't find it, so please excuse the potentially poor Google-fu.</p>

<p dir="auto">I merely want to pass tests_require from setup.py (setuptools) to Tox. I'm<br>
using the setuptools.command.test.test extension as documented here:<br>
<a href="https://testrun.org/tox/latest/example/basic.html#integration-with-setuptools-distribute-test-commands">https://testrun.org/tox/latest/example/basic.html#integration-with-setuptools-distribute-test-commands</a>.<br>
I tried using an env var but it broke with multiple deps. I'm sure this is<br>
fairly standard.</p>

<p dir="auto">Any help is greatly appreciated!</p>
</blockquote>

<p dir="auto">The testrun.org thing you link to uses tests_require to <em>install</em> tox;<br>
any actual test dependencies you have won't be installed in your tox<br>
managed virtual environments, because tox doesn't introspect<br>
tests_require. You need to use the usual tox mechanisms (e.g. deps = )<br>
to specify your test dependencies.</p>

<p dir="auto">HTH,<br>
Rob</p>

<p dir="auto">-- <br>
Robert Collins <a href="mailto:rbtcollins@hp.com">rbtcollins@hp.com</a><br>
Distinguished Technologist<br>
HP Converged Cloud</p>
</blockquote>

</div>