Skip to content

feat(13617): record reason for deselection and allow it to be displayed #13618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ssbarnea
Copy link
Member

  • starts to record deselection reasons
  • display deselected with increased verbosity level

Fixes: #13617

- starts to record deselection reasons
- display deselected with increased verbosity level

Fixes: #13617
@@ -446,6 +446,9 @@ def pytest_collection_modifyitems(items: list[nodes.Item], config: Config) -> No
deselected = []
for colitem in items:
if colitem.nodeid.startswith(deselect_prefixes):
colitem._deselected_reason = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No no patch on attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logging: pytest should allow users to know why a test was deselected
2 participants