1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00
android-library/test_client/tests/custom_rules.xml
2014-11-12 19:14:07 +01:00

20 lines
735 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<!-- Run regular Android target 'test', but fails if any test is not successful -->
<target name="acceptance-test" depends="clean, debug, install" >
<property name="log.file" value="tests_output.txt" />
<record name="${log.file}" action="start" />
<antcall target="test" /> <!-- regular Android target -->
<record name="${log.file}" action="stop" />
<loadfile property="tests.output" srcFile="${log.file}" />
<echo>Checking for failures</echo>
<fail message="Acceptance tests failed." >
<condition>
<contains string="${tests.output}" substring="FAILURES" />
</condition>
</fail>
<echo>All tests passed.</echo>
</target>
</project>