Skip to content

Instantly share code, notes, and snippets.

@gdusbabek
gdusbabek / color-junit
Created January 13, 2011 16:45 — forked from eevans/Makefile
#!/usr/bin/env python
import re, sys
STATUS_RE = re.compile(
'\s+\[junit\] Tests run: [\d]+, Failures: ([\d]+), Errors: ([\d]+)')
EXCEPT_RE = re.compile(
'\s+\[junit\] (Exception in |\tat \w+|Caused by: )')
RED = "\033[1;31m%s\033[0m"