summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2014-08-25 18:30:49 +0200
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2014-08-25 18:30:49 +0200
commit3555e0ec840a7ab843794e53a17142bd6ee49d87 (patch)
tree3bc6d2ac42ef2f103640bf544fb174428b7c2565
parentd4b5c7b95de88d3890be654e06da812c6eb607f5 (diff)
parent42f8a96a37cdeb869382b0a1bb084296299302c4 (diff)
downloadscala-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-xbuild.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index b7950f971c..6c750e530d 100755
--- a/build.xml
+++ b/build.xml
@@ -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>