[py-dev] extending "-p" / plugin pre-loading?
holger krekel
holger at merlinux.eu
Tue May 4 17:54:15 CEST 2010
Hi all,
i am preparing a py/test-1.3.0 release and stumbled across the need and idea
to extend the '-p' option - comprising these usages:
py.test -p NAME # import plugin with the given name
py.test -p path/to/conftest.py # pre-load this conftest.py file
py.test -p path/to/NAME.py # load given file as a plugin
The first line works with py-1.2.1 already. The other two
would be new and useful if you have some special plugin/test running
modes you only want to enable explicitely. The specified
conftest/plugin code gets loaded before command line parsing
so it can add new cmdline options already.
However it turns out I don't currently have the need myself for this extension
anymore and wonder if anybody is interested in this. If not i just keep my
local patch in some attic.
best,
holger
More information about the Pytest-dev
mailing list