diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-08-25 18:30:49 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-08-25 18:30:49 +0200 |
commit | 3555e0ec840a7ab843794e53a17142bd6ee49d87 (patch) | |
tree | 3bc6d2ac42ef2f103640bf544fb174428b7c2565 | |
parent | d4b5c7b95de88d3890be654e06da812c6eb607f5 (diff) | |
parent | 42f8a96a37cdeb869382b0a1bb084296299302c4 (diff) | |
download | scala-3555e0ec840a7ab843794e53a17142bd6ee49d87.tar.gz scala-3555e0ec840a7ab843794e53a17142bd6ee49d87.tar.bz2 scala-3555e0ec840a7ab843794e53a17142bd6ee49d87.zip |
Merge pull request #3942 from gourlaysama/wip/junit
Add support for running a specific Junit test/method.
-rwxr-xr-x | build.xml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1440,9 +1440,13 @@ TODO: <stopwatch name="test.junit.timer"/> <mkdir dir="${test.junit.classes}"/> <echo message="Note: details of failed tests will be output to ${build-junit.dir}"/> + + <if><isset property="test.method" /><then><property name="test.methods" value="${test.method}" /></then></if> <junit fork="yes" haltonfailure="yes" printsummary="on"> <classpath refid="test.junit.compiler.build.path"/> - <batchtest fork="yes" todir="${build-junit.dir}"> + <test fork="yes" todir="${build-junit.dir}" if="test.class" unless="test.methods" name="${test.class}" /> + <test fork="yes" todir="${build-junit.dir}" if="test.methods" name="${test.class}" methods="${test.methods}" /> + <batchtest fork="yes" todir="${build-junit.dir}" unless="test.class"> <fileset dir="${test.junit.classes}"> <include name="**/*Test.class"/> </fileset> |