Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

tb3test.xml 2.8KB

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