numirias / pytest-json-report

🗒️ A pytest plugin to report test results as JSON
MIT License
146 stars 39 forks source link

making pytest-json-report compatible with pytest-xdist #24

Closed sosadchuk closed 5 years ago

sosadchuk commented 5 years ago
  1. pytest_runtest_makereport hook changed to pytest_runtest_logreport, because we don't get into first one if we're using workers
  2. json_streams, json_log - added AttributeError exception handling
  3. pytest_configure hook - excluded workers from execution
numirias commented 5 years ago

Thank you for your contribution! Since I was already in the process of major refactorings and a slightly different approach to making the plugin xdist-compatible, I decided to go forward with my own version (#28) instead of this PR. Let me know if you have comments on the current implementation or issues with xdist and the current plugin version.