Color (red / green) console output for junit ant tests

I play with ant and JUnit4 in a terminal emulator, and not in an IDE, like Eclipse.

Is there an ant-native way to get colorized test results? A google search led me to this python script ; I would prefer to use a "pure" ant , if possible.

For example, when I run my tests using ant runtests , I would like to display the tags FAILED red, PASSED green, etc.

+4
source share
1 answer

The AnsiColorLogger described in the Ant manual should do exactly what you want.

+7
source

All Articles