/plugins/Navigator/tags/Navigator-2.2/test/build.xml

# · XML · 77 lines · 40 code · 12 blank · 25 comment · 0 complexity · 253c28d52591e7152d7764d321da29c1 MD5 · raw file

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