-
Notifications
You must be signed in to change notification settings - Fork 16
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
Coloured Output #62
Comments
Probably termcolor rather than pygments, but yes, this seems like a good idea. Pygments could be used on the source, but we'd have to figure out what to do with the line numbers. This would probably require implementing our own more customized FWIW, pytest does this to customize its runner: https://github.com/pytest-dev/pytest/blob/master/src/_pytest/runner.py. Probably more than we need. Might also be worth setting up Appveyor to test the colored output on windows. We should probably have windows tests anyway, and I'm not sure how we'd test this in general other than checking for explicit ANSI color sequences, which seems gross, but might be acceptable. Thanks! |
@JohnPaton one thing you can do for now is use an alternative test runner like |
Not hard at all. I added Sorry about the delay, by the way. I totally missed the notification for CleanCut/green#191 |
Currently I write my tests in
unittest
, but usepytest
as a test runner because the coloured output makes it easier to see what's going on at a glance (plus it just looks better). This could be added tomarbles
as well, since nicer output is a major feature. Examples I'm thinking of:.
/ redF
as tests run:ok
/ redFAIL
in verbose mode:FAIL
in title to make quick scrolling easier (more visible breaks between mesages)'+31612345678' != 'this will fail'
)This might be a good use case for
colorama
and/orpygments
at the expense of another dependency.The text was updated successfully, but these errors were encountered: