<property environment="env"/> <testng classpathref="my.classpath" outputDir="${my.outputdir}" haltOnfailure="true" verbose="${env.verbose}">
Here I've used an environment variable to facilitate dynamic levels of verbosity. As per the TestNG Javadoc:
verbose - the verbosity level (0 to 10 where 10 is most detailed) Actually, this is a lie: you can specify -1 and this will put TestNG in debug mode (no longer slicing off stack traces and all). |
Given this, I can run my tests like so:
% export verbose=5 % cd /home/mystuff/java/projects/quantum-gravity-dongle/tests % ant runtests
...and I'll get the diagnostics I need to quickly locate test problems.
No comments:
Post a Comment