NickTomlin / protractor-flake

Rerun potentially flakey protractor tests before failing.
MIT License
80 stars 51 forks source link

About making flake message more visible #47

Closed sul4bh closed 7 years ago

sul4bh commented 7 years ago

The messages/logs from protractor-flake are hard to notice in long stream of logs. Is there a way to make the messages more visible?

Some of the messages that I am talking about are: 'Re-running tests: test attempt ' + testAttempt + '\n' 'Re-running the following test files:\n'

I am thinking we could have an option to add colors to various log levels? Most of the messages generated by flake are 'info' messages. We could add an option to make 'info' yellow? Or underline?

Let me know if you have any other ideas. I can work on creating a PR for adding color if you like it.

wswebcreation commented 7 years ago

Hi @sul4bh,

Sounds like a good idea. We can use for example chalk for this. On the other hand, colors are not always seen in CI solutions like Jenkins. Can you create a PR for it to share your idea?

Grtz Wim

NickTomlin commented 7 years ago

👍 would love to see a PR for this

(and also to to ensuring that we allow for disabling this for CI/Automated solutions that may not support colors)