NIHVIVO-76 Create an "acceptance" target in the build script, and an output directory in the acceptance-tests folder.
This commit is contained in:
parent
adae47ae04
commit
310f3d484d
1 changed files with 22 additions and 0 deletions
22
build.xml
22
build.xml
|
@ -47,4 +47,26 @@
|
||||||
-->
|
-->
|
||||||
<import file="${vitro.core.dir}/webapp/product-build.xml" />
|
<import file="${vitro.core.dir}/webapp/product-build.xml" />
|
||||||
|
|
||||||
|
<!-- =================================
|
||||||
|
target: acceptance
|
||||||
|
================================= -->
|
||||||
|
<target name="acceptance" description="--> Run the acceptance tests">
|
||||||
|
<property name="acceptance.properties.file"
|
||||||
|
location="utilities/acceptance-tests/script/acceptance_test.properties" />
|
||||||
|
<fail message="You must create a "${acceptance.properties.file}" file.">
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<available file="${acceptance.properties.file}" />
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
|
</fail>
|
||||||
|
<property file="${acceptance.properties.file}" prefix="acceptance." />
|
||||||
|
|
||||||
|
<exec executable="ruby" dir="utilities/acceptance-tests/script" failonerror="true">
|
||||||
|
<redirector output="${acceptance.output_directory}/ant_output.txt" alwayslog="true" />
|
||||||
|
<arg value="run_acceptance_tests.rb" />
|
||||||
|
<arg value="${acceptance.properties.file}" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue