Per the debug messages to be provided by #296574: Provide debug facility for general and testing it would seem logical to color them differently for easy distinguishing.
I think just using the group property of assertions should work. Look for group "debug".
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 500334-simpletest-debug-color.png | 42.44 KB | boombatower |
| #2 | 500334-simpletest-debug-color.patch | 1.48 KB | boombatower |
| #1 | 500334-simpletest-debug-color.patch | 1.48 KB | boombatower |
Comments
Comment #1
boombatower commentedComment #2
boombatower commentedChanged colors to whites.
Comment #4
boombatower commentedTest slave crapped.
Comment #5
boombatower commentedI think this is fairly straight forward.
Comment #6
webchickI'm not sure why this is a separate patch? There's no point in committing it if #296574: Provide debug facility for general and testing doesn't get in, no? Can we move this code into the patch over there?
Comment #7
boombatower commentedActually if you use the group 'Debug' you can take advantage of this. Either way it seemed like a separate patch, but we can merge.
/me has been burned TOO many times over the whole large patch stuff.
Comment #8
webchickOk, boombatower clarified on IRC that this patch is still useful even right now if you do something like:
However, I tried this and it sends conflicting messages. The results says "1 fail" yet none of the rows are coloured red. There's only the one grey "Debug" message row with a red X next to it. If I change it to a pass instead (assertTrue(TRUE...), then the fieldset gets collapsed and I need to explicitly expand it to read the debug message. Again, not intuitive.
Therefore, I'm not sure this makes much sense by itself. Let's roll it in with a patch that adds an explicit debug function.
Comment #9
webchickOn IRC, Jimmy explained that this actually is a follow-up to the verbose mode patch which is already using this grouping for debug messages.
Just a question. Why use the grouping? Why not a different $assertion->status;?
Comment #10
boombatower commentedI would much rather not add a debug status as that would require a rewrite of parts of the code, considering these messages are purely for debug that seems a bit much.
Verbose uses the Debug group right now and #296574: Provide debug facility for general and testing will provide a function to call for general debug info. So either commit here or I can include in the other debug patch.
Comment #12
boombatower commentedExtremely simple followup
Comment #13
dries commentedScreenshot?
Comment #14
boombatower commentedCan do.
Comment #15
webchickOk, committed to HEAD.