On Sat, Apr 30, 2011 at 2:05 AM, holger krekel <hol...@merlinux.eu> wrote:
> On Fri, Apr 29, 2011 at 21:54 +0800, Eduardo Schettino wrote:
>> On Fri, Apr 29, 2011 at 8:00 PM, holger krekel <hol...@merlinux.eu> wrote:
>> > * it's not compatible with pytest-xdist, is it?
I gave it a try... Right now it is definitely not compatible.

In the plugin test results are saved internally on
pytest_runtest_makereport and processed at pytest_sessionfinish. I
could see 2 issues:

1) pytest_sessionfinish is called once for every subprocess and once
for the main process. So on sessionfinish I need to detect if it is a
subprocess and send the result to the runner in the main process. In
the main process it would work as it is today. Any clues how to that?
I looked into junitxml plugin but it seems it does not work together
with xdist also.

2) pytest_runtest_makereport when using xdist "call.result" is None
(or not defined) when the test fails. I guess this is a bug on xdist.


>
> ok, now it's clear that one need to specify file system paths.
> Throughout the python world "--XYZ-pkg" might mean a module
> import path like "os.path" or a filesystem path.  Maybe good
> to mention this in the help string for the option - i'd probably
> rather call it "--watch-path" to disambiguate.
thanks. fixed.

>
> Right.  Do you plan to implement a manual way to specify deps
> for your plugin?
I could do that, but I don't know how :)   I will join the py.test IRC
so we can talk about it.

I've been thinking in going the other way. doit calling pytest instead
of pytest calling doit in a plugin. I've done that before.. the
problem is that I am not sure it can be done without losing all the
features from py.test runner.

>
> sidenote: you may want to announce the next release of the plugin
> also to the TIP (testing in python) list -
> http://lists.idyll.org/listinfo/testing-in-python -
> a number of people are rather following there rather than here.
>
I announced there. this thread was my motivation to write the plugin
(http://lists.idyll.org/pipermail/testing-in-python/2011-April/004083.html)

> best,
> holger
>
cheers,
  eduardo
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to