[TIP] Tox - passing tests_require from setup.py to Tox
me at alyssackwan.name
Sun Nov 29 00:07:10 PST 2015
I got this working by passing in `tests_require` as an env var joined by
`\n`. That worked when in-lining the env var in `deps=`.
On 29 Nov 2015, at 0:04, Robert Collins wrote:
> On 29 November 2015 at 17:05, Alyssa Kwan <me at alyssackwan.name> wrote:
>> Hi all,
>> Apologies if this has been covered before. I've looked high and low
>> can't find it, so please excuse the potentially poor Google-fu.
>> I merely want to pass tests_require from setup.py (setuptools) to
>> Tox. I'm
>> using the setuptools.command.test.test extension as documented here:
>> I tried using an env var but it broke with multiple deps. I'm sure
>> this is
>> fairly standard.
>> Any help is greatly appreciated!
> The testrun.org thing you link to uses tests_require to *install* tox;
> any actual test dependencies you have won't be installed in your tox
> managed virtual environments, because tox doesn't introspect
> tests_require. You need to use the usual tox mechanisms (e.g. deps = )
> to specify your test dependencies.
> Robert Collins <rbtcollins at hp.com>
> Distinguished Technologist
> HP Converged Cloud
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python