numirias / pytest-json-report

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

fix gh-73. Fix summary `collected` count when tests are deselected. #74

Closed schettino72 closed 2 years ago

schettino72 commented 2 years ago

Added deselected count in summary. Added CHANGELOG.md file.

schettino72 commented 2 years ago

Notice the name session.testscollected is wrong.

https://github.com/pytest-dev/pytest/issues/9614

numirias commented 2 years ago

Appreciate you digging into the oddities of pytest's stats calculation logic! I changed the patch a bit to preserve functionality related to reporting collectors.

I also appreciate your suggestion of a dedicated CHANGELOG.md. I absolutely see why that's useful addition, but I'm going to look into that separately and read up on best practices first. So I'll not be merging it right now within this PR.