My team has a unit test suite that ran in about a minute and a half with ant 1.6.5 (and 1.7.1), but now takes over 4 minutes with ant 1.8.1 (or 1.8.0). Has anyone else had this problem? The closest I've found via google is here, but it doesn't shed much light on the subject:
http://netbeans.org/bugzilla/show_bug.cgi?id=182263 We're running junit with fork=yes and forkmode=once. With forking turned off, the tests run much faster, about the same as in 1.7. (But we want the forking for other reasons.) We're running under Windows, with jdk 1.6 and junit 4.5. Have you seen this problem and worked around it? Is it a known issue, or a problem with our configuration? For the curious, I've created a simplified project here: http://web.mit.edu/lgdean/Public/test-project.zip . I've also attached test results below, showing the difference (with much smaller numbers), and a snippet of the build.xml file. Any advice would be appreciated. Thanks, Laura C:\ant-trouble\my-project>ant -version Apache Ant version 1.7.1 compiled on June 27 2008 C:\ant-trouble\my-project>ant test test: [junit] Testsuite: SomeJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.042 sec [junit] [junit] Testsuite: SomeOtherJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.032 sec [junit] [junit] Testsuite: YetAnotherJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.034 sec [junit] C:\ant-trouble\my-project>ant -version Apache Ant version 1.8.1 compiled on April 30 2010 C:\ant-trouble\my-project>ant test test: [junit] Testsuite: SomeJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.044 sec [junit] [junit] Testsuite: SomeOtherJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.122 sec [junit] [junit] Testsuite: YetAnotherJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.108 sec [junit] <target name="test"> <junit fork="yes" forkmode="once"> <formatter type="brief" usefile="false"/> <classpath> [...] </classpath> <batchtest> <fileset dir="."> <include name="**/*Test.java"/> </fileset> </batchtest> </junit> </target> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org