[TIP] py.test plugins specified with -h are not loaded with xdist

Yoann Roman silentsound+tip at gmail.com
Tue Mar 15 12:42:40 PDT 2011


I have a custom py.test plugin in a package. When I load it with
py.test -h package.plugin, it loads fine. When I use py.test -h
package.plugin -n 4, the main session loads it, but the plugin isn't
loaded by the separate 4 processes running the tests.

Is that expected behavior? Is using a conftest.py file the only way to
get a project-specific plugin loaded?

-- 
Yoann Roman



More information about the testing-in-python mailing list