Skip to content

Commit c348e30

Browse files
committed
Run unit tests in the directory of the module they're defined in.
1 parent 848c0f6 commit c348e30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎build.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@
235235
</macrodef>
236236

237237
<macrodef name="test-module" description="run unit tests.">
238-
<attribute name="modulename" description="Name of the module to jar"/>
238+
<attribute name="modulename" description="Name of the module to test"/>
239239
<sequential>
240240
<mkdir dir="build/temp/@{modulename}/test-wrk"/>
241-
<junit printsummary="no" forkmode="once" tempdir="build/temp/@{modulename}/test-wrk" haltonfailure="${haltonfailure}">
241+
<junit printsummary="no" forkmode="once" tempdir="build/temp/@{modulename}/test-wrk" haltonfailure="${haltonfailure}" dir="@{modulename}">
242242
<formatter type="brief" usefile="no"/>
243243
<classpath refid="cp-@{modulename}-test-complete"/>
244244
<classpath path="build/@{modulename}-${version}-tests.jar"/>

0 commit comments

Comments
 (0)