NIHVIVO-239 Set up to run acceptance tests from Vivo.
This commit is contained in:
parent
d5210ef076
commit
a2595050b4
1 changed files with 10 additions and 44 deletions
54
build.xml
54
build.xml
|
@ -42,10 +42,10 @@
|
||||||
<property name="skip.core.themes" value="true" />
|
<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.
|
Now get the standard product-build file.
|
||||||
|
@ -53,47 +53,13 @@
|
||||||
<import file="${vitro.core.dir}/webapp/product-build.xml" />
|
<import file="${vitro.core.dir}/webapp/product-build.xml" />
|
||||||
|
|
||||||
<!-- =================================
|
<!-- =================================
|
||||||
target: acceptance
|
target: acceptance
|
||||||
|
|
||||||
Hudson (continuous integration)
|
|
||||||
uses this to run the acceptance
|
|
||||||
tests.
|
|
||||||
================================= -->
|
================================= -->
|
||||||
<target name="acceptance" description="--> Run the acceptance tests">
|
<target name="acceptance" description="--> Run the Selenium acceptance tests.">
|
||||||
<property name="acceptance.properties.file"
|
<ant dir="${vitro.core.dir}/utilities/testrunner" target="run" inheritall="false">
|
||||||
location="utilities/acceptance-tests/script/acceptance_test.properties" />
|
<property name="acceptance.dir" location="${basedir}/utilities/acceptance-tests" />
|
||||||
<fail message="You must create a "${acceptance.properties.file}" file.">
|
<property name="acceptance.batch" value="${acceptance.batch}" />
|
||||||
<condition>
|
</ant>
|
||||||
<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>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue