Hi,

Currently looking at fixing pytest-cov to work with latest pytest.  I
see two issues so far.

1. How to determine if non distributed, or distributed master, or
distributed slave.

This used to look at the session class Session = Central (non
distributed), DSession = distributed master, and SlaveSession =
distributed slave.

So now I'm thinking look at
session.config.pluginmanager.hasplugin('dsession') which means
distributed master.  For distributed slave check if config.slaveinput
is there which means distributed slave.  If none of those then must be
non distributed.

Is there a better way to determine at pytest_sessionstart if the
process is central (non distributed), distributed master or
distributed slave?

2. Need to know topdir.

This used to use config.topdir to know what the root dir is.  This is
needed since distributed testing may be co-located or not.  If not
then have to rewrite all source paths back to what the master is set
to so that all coverage files combine correctly even if have many
separate tx envs on diff machines on diff paths.

Has this moved somewhere?  I see config.fspath, is that it?  I look
more I just got to this bit.

:)
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to