Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable build.xml to support test in parallel by add argument -DTestP…
…arallel=true and -DThreadCount=4 (This is the number of thread used to test in parallel)

	modified:   build.xml
  • Loading branch information
dapanghu committed May 3, 2018
commit 83cb9fa38b9199287c736cfd19dc6b0bc94f8969
10 changes: 7 additions & 3 deletions drjava/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
</taskdef>
<property name="coverage-report-dir" value="coverage_report"/>
<property name="coverage-exec" value="jacoco.exec"/>
<property name="TestParallel" value="${arg1}"/>
<!--property name="TestParallel" value="${arg0}"/>
<property name="ThreadCount" value="${arg1}"/-->
<condition property="Thread" value="${ThreadCount}" else="4">
<isset property="ThreadCount"/>
</condition>
<fileset id="libs" dir="lib" includes="*.jar" /> <!-- Only include jars that are at the top level (not in buildlib) -->
<fileset id="jrelibs" dir="${java.home}/lib" includes="*.jar" />
<echo message="libs = ${toString:libs}" level="verbose" />
Expand Down Expand Up @@ -348,7 +352,7 @@
<if>
<equals arg1="${TestParallel}" arg2="true" />
<then>
<echo message="Test in Parallel" />
<echo message="Test in Parallel with ${Thread} threads" />
<property name="do-test-target" value="do-test-for" />
</then>
<else>
Expand Down Expand Up @@ -443,7 +447,7 @@

<target name="do-test-for" depends="resolve-jvm-args">
<echo message="Running all tests matching '${test-filter-string}' with command '${test-jvm}', using '${junit-jar}' and '${test-tools}'" />
<for param="fileFullName" parallel= "true" threadCount="16">
<for param="fileFullName" parallel= "true" threadCount="${Thread}">
<path>
<fileset dir="classes/test">
<!--include name="**/*${test-filter-string}*/**" /-->
Expand Down