diff --git a/JodaTime/build.xml b/JodaTime/build.xml
index dc8a66d..ecb8dc8 100644
--- a/JodaTime/build.xml
+++ b/JodaTime/build.xml
@@ -294,22 +294,43 @@
   </target>
 
   <target name="test.time" depends="compile.tests,compile.zoneinfo">
-    <echo message="Running time tests ..."/>
-    <junit printsummary="yes" haltonfailure="yes">
-      <formatter type="plain" usefile="false" />
-      <classpath>
-        <pathelement location="${build.classes}"/>
-        <pathelement location="${build.tests}"/>
-        <pathelement location="${build.tz}"/>
-        <pathelement path="${java.class.path}"/>
-      </classpath>
+      <echo message="Running time tests ..."/>
+      <junit printsummary="yes" haltonfailure="no">
+          <formatter type="plain" usefile="true" />
+          <classpath>
+              <pathelement location="${build.classes}"/>
+              <pathelement location="${build.tests}"/>
+              <pathelement location="${build.tz}"/>
+              <pathelement path="${java.class.path}"/>
+              <path refid="emma.lib"/>
+          </classpath>
+
+          <batchtest fork="yes">
+              <fileset dir="${test.home}">
+                  <include name="**/Test*.java"/>
+                  <include name="**/TestAll.java"/>
+              </fileset>
+          </batchtest>
+      </junit>
+  </target>
 
-      <batchtest fork="yes">
-        <fileset dir="${test.home}">
-          <include name="**/TestAll.java"/>
-        </fileset>
-      </batchtest>
-    </junit>
+  <property environment="env" />
+  <property name="emma.dir" value="${env.EMMA_HOME}" />
+  <path id="emma.lib" >
+      <pathelement location="${emma.dir}/emma.jar" />
+      <pathelement location="${emma.dir}/emma_ant.jar" />
+  </path>
+
+  <target name="emma" description="Instruments compiled classes" depends="compile,compile.tests">
+      <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+      <emma>
+          <instr mode="overwrite">
+              <instrpath>
+                  <pathelement location="${build.classes}"/>
+                  <pathelement location="${build.tests}"/>
+              </instrpath>
+          </instr>
+      </emma>
   </target>
 
   <!-- don't depend on jar, so we can test jar built on another JDK version -->
