Skip to content
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

Option to hide pluggy even with --full-trace is used #9509

Open
azmeuk opened this issue Jan 14, 2022 · 3 comments
Open

Option to hide pluggy even with --full-trace is used #9509

azmeuk opened this issue Jan 14, 2022 · 3 comments
Labels
status: help wanted developers would like help from experts on this topic topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature

Comments

@azmeuk
Copy link
Member

azmeuk commented Jan 14, 2022

Hi. Without any option the traceback that produces pytest is quiet enough. Sometimes I want to see what is going on upper in the call graph, without calling pdb, so I use --full-trace --showlocals options. This shows me what I want to see, but much more too, as it displays the whole pluggy traceback.

I suggest adding an option (something like --verbose-traceback), or editing the --full-traceback option (something like --full-traceback=half), so it is possible to have the full user-written traceback but not the pytest internal stuff.

What do you think?

@RonnyPfannschmidt RonnyPfannschmidt added status: help wanted developers would like help from experts on this topic topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature labels Jan 14, 2022
@RonnyPfannschmidt
Copy link
Member

my surrounding idea would be to have "collabsile" framework parts for tracebacks, so stuff like django orm, sqlalchemy, pytest/pluggy , flask&co as well as helper libraries can be hidden by default and shown on demand

however i dont think i will get to work on that part of pytest this year

@azmeuk
Copy link
Member Author

azmeuk commented Jan 14, 2022

I love this idea, I just realized you mentioned it in #283
Until this is implemented, what do you think of the idea to add an option that would show a full-trace, but without the pluggy parts?

@RonnyPfannschmidt
Copy link
Member

its a nice idea - when implementing it, one could take a look at enabling some extra filtering based on toplevels to go towards #283 (aka instead of jsut fintering pluggy, being able to filter more based on a extra option)

--traceback-skip-toplevel=pluggy,sqlalchemy,django.orm might be a nice hack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted developers would like help from experts on this topic topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature
Projects
None yet
Development

No branches or pull requests

2 participants