Modify Simpletest's HTML Reporter
Posted: Wed Aug 30, 2006 11:19 am
OK I have a failing error like this:
I've had a look at the source code and I'm damned if I can work out where to go to change this stuff.
Obviously its really difficult to see what the difference is because the browser removes whitespace. So what I'd like to do is modify the reporter to output each character as a list item with some special whitespace characters highlighted somehow. Like this:Fail: OF/Testing/TestOfClassEnc.php -> TestOfEnc -> testStrPad -> Equal expectation fails at character 13 with [<IñtërnëT>] and [<IñtërnëT> ] at [/osis/lib/code/php/OF/Testing/TestOfClassEnc.php line 53
Only it'll be better because it'll be formatted with HTML and CSSFail: OF/Testing/TestOfClassEnc.php -> TestOfEnc -> testStrPad -> Equal expectation fails at character 13 with [<|I|ñ|t|ë|r|n|ë|T|>] and [<|I|ñ|t|ë|r|n|ë|T|>|sp|\n] at [/osis/lib/code/php/OF/Testing/TestOfClassEnc.php line 53
I've had a look at the source code and I'm damned if I can work out where to go to change this stuff.