[TIP] pytest, making a standalone script with extensions

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Sat Dec 3 12:05:34 PST 2011

Hi francis,

currently we don't have support for bundling
py.tests + 3rd party plugins

the main issue is, that start-up would need to pass in the plugins somehow

i think a reasonable solution could be to use some extra metadata from
distutils, but that breaks things like xdist + coverage for example

however that needs implementation and testing

a much more nice solution could be storing a pip requirements file for
the tests

then you can just list + version pin all required things, and preparing
a testrun is not much harder than running pip install

-- Ronny

On 12/03/2011 02:15 PM, francis wrote:
> Hi all,
> I've started evaluating and playing with pytest to use it as a
> replacement of our
> actual test script and some questions arose (sorry If too trivial):
> I would like too used it as standalone script (“--genscript” option) so
> that I can
> integrate it into the repository and so coworkers don't have to “install
> yet another
> python package or decency” (is that a good practice?). To do that I hat
> to install
> the package and it's dependencies locally manually first (as I got a
> timeout
> using pip and easy_install) and then I've generated the standalone
> script. Is there
> a way to do that without first having to installing it?
> I would like to use the extension 'xdist'. Is there a way to generate a
> standalone
> with this extension integrated in it?
> Thanks in advance !
> Francis
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20111203/170bdbe2/attachment.pgp>

More information about the testing-in-python mailing list