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

Colorize tests #152

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Colorize tests #152

wants to merge 2 commits into from

Conversation

girasquid
Copy link
Contributor

I was running tests on my game and noticed they had no colors - this seemed like an easy improvement to make it easier to parse visually, so I added some.

As I was trying to validate the change, I discovered that none of my color codes were working... I am not sure if my terminal is misconfigured (I don't believe it is? Fairly stock iTerm on OS X) or not, but I've included the commit with changes I had to make to log_with_color to get it working as well.

Screenshot (the non-colorized outputs are from puts statements in my code):

Screen Shot 2023-11-04 at 3 03 33 PM

- cyan for informational
- green for passed
- yellow for inconclusive
- red for failed
Previous implementation never output colors for me
@girasquid
Copy link
Contributor Author

@amirrajan I am ok not receiving copyright credit in the source file for this, but I'm not clear how to mark that for this PR. Is there a particular notation I should use?

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.

1 participant