NIHVIVO-239 Set up to run acceptance tests from Vivo.

This commit is contained in:
jeb228 2010-06-03 19:01:27 +00:00
parent d5210ef076
commit a2595050b4

View file

@ -42,10 +42,10 @@
<property name="skip.core.themes" value="true" />
<!--
Tell the licesner where to find its properties for this product.
Tell the licenser where to find its properties for this product.
-->
<property name="licenser.product.properties.file" location="config/licenser/licenser.properties" />
<property name="licenser.product.properties.file"
location="config/licenser/licenser.properties" />
<!--
Now get the standard product-build file.
@ -53,47 +53,13 @@
<import file="${vitro.core.dir}/webapp/product-build.xml" />
<!-- =================================
target: acceptance
Hudson (continuous integration)
uses this to run the acceptance
tests.
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 &quot;${acceptance.properties.file}&quot; file.">
<condition>
<not>
<available file="${acceptance.properties.file}" />
</not>
</condition>
</fail>
<property name="acceptance.script.directory" location="utilities/acceptance-tests/script" />
<exec executable="ruby" dir="${acceptance.script.directory}" failonerror="true">
<arg value="run_acceptance_tests.rb" />
<arg value="${acceptance.properties.file}" />
<redirector outputproperty="acceptance.test.output" alwayslog="true" />
</exec>
<fail message="Errors were detected in the console output from the acceptance tests.">
<condition>
<or>
<contains string="${acceptance.test.output}"
substring="error"
casesensitive="false" />
<contains string="${acceptance.test.output}"
substring="exception"
casesensitive="false" />
</or>
</condition>
</fail>
<exec executable="ruby" dir="${acceptance.script.directory}" failonerror="true">
<arg value="output_manager.rb" />
<arg value="${acceptance.properties.file}" />
</exec>
<target name="acceptance" description="--> Run the Selenium acceptance tests.">
<ant dir="${vitro.core.dir}/utilities/testrunner" target="run" inheritall="false">
<property name="acceptance.dir" location="${basedir}/utilities/acceptance-tests" />
<property name="acceptance.batch" value="${acceptance.batch}" />
</ant>
</target>
</project>