Colour stack trace using pygments? #219
Replies: 3 comments
-
I never considered colorizing tracebacks! Pygments has no dependencies itself, so nice and tight -- no concerns there. Would you be interested in trying to polish this up to include in a release? Here are the items I've noticed that would need to be addressed before merging:
|
Beta Was this translation helpful? Give feedback.
-
I've made a commit that i believe addresses your concerns: psacawa@d96cbff |
Beta Was this translation helpful? Give feedback.
-
@psacawa Ah, I failed to mention to please make sure the pygments output uses one of the existing colors we are already using (Red, Green, Blue, Yellow, Bright White). Right now the two offenders that I see are There is already a Yes, if you add tests and find a way to adjust the colors, this may be ready to merge. |
Beta Was this translation helpful? Give feedback.
-
Hello, and thank for this module.
I am wondering if consideration has been given to adding colour to the stack traces printed out upon failure of a test. For a test runner emphasizing colour, this seems like an obvious omission. I have patched in this functionality using
pygments
in my fork: psacawa@1922bc8 in an ad hoc fashion that suits my own use case.Is there interest in implementing this properly?
Beta Was this translation helpful? Give feedback.
All reactions