You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tb3test.xml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <project name="tb3test" xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:ivy="antlib:org.apache.ivy.ant" basedir=".">
  3. <dirname property="tb3test.dir" file="${ant.file.tb3test}" />
  4. <property name="report.dir" location="${tb3test.dir}/result/reports-tb3" />
  5. <property name="browsers.include" value="" />
  6. <property name="browsers.exclude" value="" />
  7. <property name="categories.include" value="" />
  8. <property name="categories.exclude" value="" />
  9. <ivy:resolve file="${tb3test.dir}/ivy.xml" conf="build, build-provided" />
  10. <ivy:cachepath pathid="classpath.tb3.lib" conf="build, build-provided" />
  11. <path id="classpath.tb3">
  12. <path refid="classpath.tb3.lib" />
  13. <path location="${tb3test.dir}/result/classes" />
  14. </path>
  15. <target name="run-all-tb3-tests" unless="tests.tb3.skip" description="Run all the TB3 tests (except server tests) in the project">
  16. <antcall target="run-tb3-suite">
  17. <param name="junit.test.suite" value="com.vaadin.tests.tb3.AllTB3Tests" />
  18. </antcall>
  19. </target>
  20. <target name="run-tb3-suite">
  21. <fail unless="junit.test.suite" message="Define suite to run using junit.test.suite" />
  22. <fail unless="com.vaadin.testbench.screenshot.directory" message="Define screenshot directory using -Dcom.vaadin.testbench.screenshot.directory" />
  23. <delete dir="${report.dir}" />
  24. <mkdir dir="${report.dir}" />
  25. <junit showoutput="no" printsummary="no" fork="yes">
  26. <formatter type="xml" />
  27. <classpath refid="classpath.tb3" />
  28. <jvmarg value="-Dcom.vaadin.testbench.screenshot.directory=${com.vaadin.testbench.screenshot.directory}" />
  29. <jvmarg value="-Djava.awt.headless=true" />
  30. <jvmarg value="-Dbrowsers.include=${browsers.include}" />
  31. <jvmarg value="-Dbrowsers.exclude=${browsers.exclude}" />
  32. <jvmarg value="-Dcategories.include=${categories.include}" />
  33. <jvmarg value="-Dcategories.exclude=${categories.exclude}" />
  34. <test name="${junit.test.suite}" todir="${report.dir}" />
  35. </junit>
  36. </target>
  37. </project>