imakerplugin/com.nokia.s60tools.imaker.tests.feature/test.xml
changeset 0 61163b28edca
equal deleted inserted replaced
-1:000000000000 0:61163b28edca
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project name="testsuite" default="run" basedir=".">
       
     3 	<property file="../common.properties" />
       
     4 	<!-- The property ${eclipse-home} should be passed into this script -->
       
     5 	<!-- Set a meaningful default value for when it is not. -->
       
     6 	
       
     7 	<!-- sets the properties eclipse-home, and library-file -->
       
     8 	<property name="plugin-name" value="com.nokia.s60tools.imaker.tests"/>
       
     9 	<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.2.0/library.xml"/>
       
    10 
       
    11 	<!-- This target holds all initialization code that needs to be done for -->
       
    12 	<!-- all tests that are to be run. Initialization for individual tests -->
       
    13 	<!-- should be done within the body of the suite target. -->
       
    14 	<target name="init">
       
    15 		<tstamp/>
       
    16 		<delete>
       
    17 			<fileset dir="${eclipse-home}" includes="org*.xml"/>
       
    18 		</delete>
       
    19 	</target>
       
    20 
       
    21 	<!-- This target defines the tests that need to be run. -->
       
    22 	<target name="suite">
       
    23 		<property name="refactoring-folder" value="${basedir}/refactoring_folder"/>
       
    24 		<delete dir="${refactoring-folder}" quiet="true"/>
       
    25 		<ant target="ui-test" antfile="${library-file}" dir="${basedir}">
       
    26 			<property name="data-dir" value="${refactoring-folder}"/>
       
    27 			<property name="plugin-name" value="${plugin-name}"/>
       
    28 			<property name="classname" value="com.nokia.s60tools.imaker.internal.tests.AllTests"/>
       
    29 		</ant>
       
    30 	</target>
       
    31 
       
    32 	<!-- This target holds code to cleanup the testing environment after -->
       
    33 	<!-- after all of the tests have been run. You can use this target to -->
       
    34 	<!-- delete temporary files that have been created. -->
       
    35 	<target name="cleanup">
       
    36 	</target>
       
    37 
       
    38 	<!-- This target runs the test suite. Any actions that need to happen -->
       
    39 	<!-- after all the tests have been run should go here. -->
       
    40 	<target name="run" depends="init,suite,cleanup">
       
    41 		<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
       
    42 			<property name="includes" value="org*.xml"/>
       
    43 			<property name="output-file" value="${plugin-name}.xml"/>
       
    44 		</ant>
       
    45 	</target>
       
    46 </project>