Color Tests

Ovid on 2005-01-25T18:01:18

One of former coworkers altered out test suite to output test data with colors. I tried to do that with Test::Builder to make successes show up in green, failures show up in red with the possibility of having skips and todos showing up in yellow or yet another color. I find it very handy. Then I found out how Test::Harness::Straps::_analyze_line figures out if a test fails or passes. Very agonizing, I must say. I'll have to take a look at the iterator and figure it out from there. The test module internals are scary.


_analyze_line

petdance on 2005-01-26T17:38:16

Be damn careful with anything you're doing with _analyze_line, especially because I'm not guaranteeing it will always be there.

Re:_analyze_line

Ovid on 2005-01-26T17:47:18

I realize that the internals may change radically and I haven't tried to submit a patch because I doubt anyone would really care about this other than myself.

Re:_analyze_line

Ovid on 2005-01-26T17:49:19

Though I confess it's darned handy to scroll through a bunch of test output and see the chunk of red in the sea of green. It makes debugging much faster though I want to look at chromatic's qtest and see what I could modify from there and not have to touch the internals.