Why do I get 0% coverage when I run my tests and then a reporter from the same instance of Ant?

Q: Why do I get 0% coverage when I run my tests and then a reporter from the same instance of Ant?

This occurs because Clover hasn't had a chance to flush coverage data out to disk. By default Clover flushes coverage data only at JVM shutdown or when explicitly directed to (using an inline directive). The simplest thing to do is to use the {{fork="true"}}attribute when running your tests. The tests will then be run in their own JVM, and the coverage data will be flushed when that JVM exits. Alternatively, you can use interval-based flushing by changing the Flush Policy.