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
52
build.xml
52
build.xml
|
@ -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.
|
||||
|
@ -54,46 +54,12 @@
|
|||
|
||||
<!-- =================================
|
||||
target: acceptance
|
||||
|
||||
Hudson (continuous integration)
|
||||
uses this to run the acceptance
|
||||
tests.
|
||||
================================= -->
|
||||
<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 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue