4

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

Is there an ant-native method of getting colorised test results? A google search led me to this python script; I'd prefer to utilize 'pure' ant if I can.

For example, when I run my tests with ant runtests, I'd like to display the FAILED tests red, the PASSED tests green, etc.

simont
  • 68,704
  • 18
  • 117
  • 136

1 Answers1

7

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

fvu
  • 32,488
  • 6
  • 61
  • 79
  • 1
    Set the `ANT_ARGS` environmental variable to automate the `-logger` argument; see [this answer](http://stackoverflow.com/a/5733003/1084945) and links. – simont Jun 26 '12 at 23:36