nicoddemus / pytest-rich

pytest + rich integration (proof of concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explore leveraging pytest's `--tb=native` command line option

joshuadavidthomas opened this issue · comments

A custom rich console renderer was implemented because Rich's builtin Traceback requires a traceback object which pytest's test reports don't provide.

However, if you run with the command line option --tb=native, the actual traceback is printed, so I wonder if it would be worth it see if we could leverage that to be able to use the builtin Traceback instead of maintaining a custom version.

Is it possible to create a custom Traceback class from whatever pytest provides?