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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <property name="useLocalWebDriver" value="false" />
  10. <property name="com.vaadin.testbench.max.retries" value="0" />
  11. <property name="com.vaadin.testbench.hub.url" value="" />
  12. <property name="vaadin.testbench.developer.license" value="" />
  13. <property name="junit.test.suite" value="com.vaadin.tests.tb3.AllTB3Tests" />
  14. <ivy:resolve file="${tb3test.dir}/ivy.xml" conf="build, build-provided" />
  15. <ivy:cachepath pathid="classpath.tb3.lib" conf="build, build-provided" />
  16. <path id="classpath.tb3">
  17. <path refid="classpath.tb3.lib" />
  18. <path location="${tb3test.dir}/result/classes" />
  19. </path>
  20. <target name="run-all-tb3-tests" unless="tests.tb3.skip"
  21. description="Run all the TB3 tests (except server tests) in the project">
  22. <antcall target="run-tb3-suite" />
  23. </target>
  24. <target name="run-tb3-suite">
  25. <fail unless="com.vaadin.testbench.screenshot.directory" message="Define screenshot directory using -Dcom.vaadin.testbench.screenshot.directory" />
  26. <delete dir="${report.dir}" />
  27. <mkdir dir="${report.dir}" />
  28. <junit showoutput="no" printsummary="no" fork="yes">
  29. <formatter type="xml" />
  30. <classpath refid="classpath.tb3" />
  31. <jvmarg value="-Dcom.vaadin.testbench.screenshot.directory=${com.vaadin.testbench.screenshot.directory}" />
  32. <jvmarg value="-Djava.awt.headless=true" />
  33. <jvmarg value="-Dbrowsers.include=${browsers.include}" />
  34. <jvmarg value="-Dbrowsers.exclude=${browsers.exclude}" />
  35. <jvmarg value="-Dcategories.include=${categories.include}" />
  36. <jvmarg value="-Dcategories.exclude=${categories.exclude}" />
  37. <jvmarg value="-DuseLocalWebDriver=${useLocalWebDriver}" />
  38. <jvmarg value="-Dcom.vaadin.testbench.max.retries=${com.vaadin.testbench.max.retries}" />
  39. <jvmarg value="-Dcom.vaadin.testbench.hub.url=${com.vaadin.testbench.hub.url}" />
  40. <jvmarg value="-Dvaadin.testbench.developer.license=${vaadin.testbench.developer.license}" />
  41. <test name="${junit.test.suite}" todir="${report.dir}" />
  42. </junit>
  43. </target>
  44. </project>