Skip to content

Commit e9bcb68

Browse files
author
graeme
committed
allowed skipping of tests to easy creation of development builds
git-svn-id: https://svn.codehaus.org/grails/trunk@5280 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 79fbf45 commit e9bcb68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ant/build/unit-test.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<project name="grails-unit-test">
2+
3+
<condition property="_skipTests_">
4+
<istrue value="${skipTests}"/>
5+
</condition>
26

37
<target name="test-with-coverage" depends="build-test, instrument-for-coverage, run-test, coverage-report" description="Compile and Run the unit tests while measuring coverage">
48
<fail if="grails.test.failure">The tests failed. Have a look at ${grails.test.reports}</fail>
59
</target>
6-
<target name="test" depends="clean-instrumented, run-test" description="Compile and Run the unit tests plainly">
10+
<target name="test" depends="clean-instrumented, run-test" unless="_skipTests_" description="Compile and Run the unit tests plainly">
711
<fail if="grails.test.failure">The tests failed. Have a look at ${grails.test.reports}</fail>
812
</target>
913

@@ -94,7 +98,7 @@
9498
</condition>
9599
</target>
96100

97-
<target name="run-test" depends="defineTestingScope, build-test">
101+
<target name="run-test" depends="defineTestingScope, build-test" unless="_skipTests_">
98102
<delete dir="${grails.test.reports}" />
99103
<mkdir dir="${grails.test.reports}" />
100104
<junit fork="true" maxmemory="512m" forkmode="once">

0 commit comments

Comments
 (0)