PageRenderTime 11ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/BufferLocal/test/build.xml

#
XML | 75 lines | 38 code | 12 blank | 25 comment | 0 complexity | 779e350cf6def7638a5d92cb1503f2f5 MD5 | raw file
 1<project name="bufferlocal_tests" default="test" basedir=".">
 2    
 3
 4    <!-- general properties for plugins from the plugins directory, in 
 5    partcular, need the install.dir set to know where to find the plugin
 6    jar files. -->
 7    <property file="../../build.properties"/>
 8    <property file="build.properties"/>
 9    
10    <!-- location of the test framework, this should be set in the build.properties
11    file loaded above. -->
12    <property name="test.framework.home" location="/home/danson/src/jedit/tests/Fest"/>
13    
14    <!-- test source and classes -->
15    <property name="project.test.src.dir" location="${basedir}"/>
16    <property name="project.test.classes.dir" location="${basedir}/classes"/>
17    <mkdir dir="${project.test.classes.dir}"/>
18
19    <!-- marker property to indicate to the test framework that plugin jars
20    need to be copied -->
21    <property name="copyPluginJars" value=""/>
22    
23    <!-- full list of all jar files necessary to let jEdit load and run
24    the plugin.  All of these files will be copied to the jedit_settings/jar
25    directory. -->
26    <filelist id="plugin.jars" dir="${install.dir}">
27        <file name="BufferLocal.jar"/>
28    </filelist>
29
30    <!-- include everything needed to let jEdit load the plugin and run the 
31    unit tests.  This should include all the jars listed in the plugin.jars 
32    file list defined above. -->
33    <path id="project.class.path">
34        <pathelement path="project.test.classes.dir"/>
35        <path>
36            <filelist refid="plugin.jars"/>
37        </path>
38    </path>
39
40    <!-- these are the actual test files to compile.  This is included so it
41    is easy to fine tune which tests are compiled and ran. --> 
42    <selector id="projectFiles">
43        <filename name="**/*.java" />
44    </selector>
45    
46    <!-- this selector holds all test cases.  This is optional. -->
47    <selector id="testcases.all">
48        <or>
49            <filename name="test/**/*Test.java"/>
50        </or>
51    </selector>
52
53    <!-- this selector holds just one test.  This is optional. -->
54    <selector id="testcases.current">
55        <filename name="test/BufferLocalTest.java"/>
56    </selector>
57
58    <!-- this selector controls which tests to run, set the refid to either
59    testcases.current to run just one test or testcases.all to run all tests,
60    or some other selector.  This is NOT optional, if this selector is not
61    defined, no tests will run. -->
62    <selector id="junit.testcases">
63        <or>
64            <selector refid="testcases.current"/>
65        </or>
66    </selector>
67
68    <!-- actually call the test framework to run the tests.  inheritRefs must
69    be true so that all of the things defined above are known to the test 
70    framework. -->
71    <target name="test">
72        <ant antfile="${test.framework.home}/build.xml" target="-test" inheritRefs="true">
73        </ant>
74    </target>
75</project>