On Nov 28, 2011, at 10:38 PM, Tim Pease wrote:

> I've made some modifications to Nutch to suite some requirements at work. 
> However, my changes have caused one of the JUnit tests to fail. The output 
> from running `ant test` is none too helpful. All it tells me is "BUILD FAILED 
> - good luck scrolling through a thousand lines of output to find that 
> failure, and I'm not going to show you any filenames or line numbers where 
> the failed assertion happened."
> 
> Any pointers on getting better information out of Ant / JUnit would be 
> greatly appreciated.
> 
> Blessings,
> TwP

Found what I was looking for under the "build" directory. Test output will be 
written to a file of the form "TEST-full.test.name.TestClass.txt" in the 
"build" folder. A command like the following will unearth any errors ...

  find build -name 'TEST-*' | xargs grep -i 'Failures: '

Just writing this out so I can google it again in six months.

Blessings,
TwP

Reply via email to