Hi,

I’ve developed a pytest plugin, that collects information during a pytest
run and stores it into file at the end of the run.

So far, it works nicely but some of our internal users run it in
combination with “pytest-xdist” and there it crashes.

Details:

In order to get the pytest test result, I use the hook
“pytest_runtest_logreport()” and retrieve pytest result category, letter
and word via:

        result_category, result_letter, result_word =
config.hook.pytest_report_teststatus(report=report)


Now, in combination with “pytest-xdist” it crashes with:

        INTERNALERROR>     result_category, result_letter, result_word =
config.hook.pytest_report_teststatus(report=report)
        INTERNALERROR> TypeError: 'NoneType' object is not iterable


I did not find any hints in pytest-xdist’s documentation
(https://bitbucket.org/pytest-dev/pytest-xdist).
Therefore, is there any guidance (in form of documentation/experience)
available on how to make a plugin work nicely together with “pytest-xdist”?

Kind regards,

/stephan



_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to