diff options
author | Artur Signell <artur@vaadin.com> | 2013-11-04 18:10:05 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2013-11-18 12:40:30 +0000 |
commit | dde6a4893dd1c3d1bc040d58db6fd4cec012c74c (patch) | |
tree | 3910b3b0d5f57e690dfd7d36a192af2d74303606 /uitest/tb3test.xml | |
parent | 81a1c293f0e407db4a5443b85e57d32cddd397a7 (diff) | |
download | vaadin-framework-dde6a4893dd1c3d1bc040d58db6fd4cec012c74c.tar.gz vaadin-framework-dde6a4893dd1c3d1bc040d58db6fd4cec012c74c.zip |
Output test results in XML reports instead of to standard output
This is a workaround for a problem with the integrated TeamCity JUnit
listener which is not thread safe. Without this the test results are
completely mixed up in TeamCity. For more information, see
http://youtrack.jetbrains.com/issue/TW-33176.
All standard JUnit test reports is put in result/reports. For uitest
there are three report directories: result/reports-tb2,
result/reports-tb3 and result/reports-integration to be able to clean
the directories before running a given type of tests.
This change is based on the separate fixes by John.
Change-Id: I2f0dee416f6745544636f2f3dcea0d0832ff8076
Diffstat (limited to 'uitest/tb3test.xml')
-rw-r--r-- | uitest/tb3test.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/uitest/tb3test.xml b/uitest/tb3test.xml index dd0c12db91..41cce8f0f2 100644 --- a/uitest/tb3test.xml +++ b/uitest/tb3test.xml @@ -2,6 +2,7 @@ <project name="tb3test" xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:ivy="antlib:org.apache.ivy.ant" basedir="."> <dirname property="tb3test.dir" file="${ant.file.tb3test}" /> + <property name="report.dir" location="${tb3test.dir}/result/reports-tb3" /> <ivy:resolve file="${tb3test.dir}/ivy.xml" conf="build, build-provided" /> <ivy:cachepath pathid="classpath.tb3.lib" conf="build, build-provided" /> @@ -19,13 +20,16 @@ <target name="run-tb3-suite"> <fail unless="junit.test.suite" message="Define suite to run using junit.test.suite" /> <fail unless="com.vaadin.testbench.screenshot.directory" message="Define screenshot directory using -Dcom.vaadin.testbench.screenshot.directory" /> - <junit printsummary="withOutAndErr" fork="yes"> - <formatter usefile="false" type="plain" /> + <delete dir="${report.dir}" /> + <mkdir dir="${report.dir}" /> + + <junit showoutput="no" printsummary="no" fork="yes"> + <formatter type="xml" /> <classpath refid="classpath.tb3" /> <jvmarg value="-Dcom.vaadin.testbench.screenshot.directory=${com.vaadin.testbench.screenshot.directory}" /> <jvmarg value="-Djava.awt.headless=true" /> - <test name="${junit.test.suite}" /> + <test name="${junit.test.suite}" todir="${report.dir}" /> </junit> </target> |