You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by at...@apache.org on 2009/01/29 05:50:04 UTC
svn commit: r738758 - in /hadoop/hive/trunk: CHANGES.txt build-common.xml
build.xml
Author: athusoo
Date: Thu Jan 29 04:50:03 2009
New Revision: 738758
URL: http://svn.apache.org/viewvc?rev=738758&view=rev
Log:
HIVE-231. Create junit reports for tests. (Johan Oskarsson via athusoo)
Modified:
hadoop/hive/trunk/CHANGES.txt
hadoop/hive/trunk/build-common.xml
hadoop/hive/trunk/build.xml
Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=738758&r1=738757&r2=738758&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Thu Jan 29 04:50:03 2009
@@ -211,7 +211,7 @@
HIVE-84. Make MetaStore Client thread safe. (Prasad Chakka via dhruba)
HIVE-203. Fix eclipse templates to get junit tests to run.
- (iRaghotham Murthy via dhruba)
+ (Raghotham Murthy via dhruba)
HIVE-220. Incorrect log directory in TestMTQueries causing null pointer
exception. (Prasad Chakka via dhruba)
@@ -260,3 +260,6 @@
private members of the records in calculating the avg size of the
rows and we were also not estimating variable length columns
properly. (Namit Jain via athusoo)
+
+ HIVE-231. Create junit reports for tests. (Johan Oskarsson via athusoo)
+
Modified: hadoop/hive/trunk/build-common.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/build-common.xml?rev=738758&r1=738757&r2=738758&view=diff
==============================================================================
--- hadoop/hive/trunk/build-common.xml (original)
+++ hadoop/hive/trunk/build-common.xml Thu Jan 29 04:50:03 2009
@@ -60,7 +60,7 @@
<property name="test.classpath.id" value="test.classpath"/>
<property name="test.output" value="true"/>
<property name="test.timeout" value="900000"/>
- <property name="test.junit.output.format" value="plain"/>
+ <property name="test.junit.output.format" value="xml"/>
<property name="test.junit.output.usefile" value="true"/>
<path id="test.classpath">
Modified: hadoop/hive/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/build.xml?rev=738758&r1=738757&r2=738758&view=diff
==============================================================================
--- hadoop/hive/trunk/build.xml (original)
+++ hadoop/hive/trunk/build.xml Thu Jan 29 04:50:03 2009
@@ -29,6 +29,7 @@
<property name="target.example.dir" location="${target.dir}/examples"/>
<property name="ql.test.query.dir" location="${basedir}/ql/src/test/queries"/>
<property name="test.data.dir" location="${basedir}/data"/>
+ <property name="test.build.dir" value="${build.dir.hive}/test"/>
<!-- ====================================================== -->
<!-- Initialize for running junit tests -->
@@ -111,6 +112,16 @@
<fileset dir="." includes="*/build.xml" excludes="ant/build.xml"/>
</subant>
</target>
+
+ <!-- create an html report from junit output files -->
+ <target name="testreport">
+ <junitreport todir="${test.build.dir}">
+ <fileset dir="${build.dir.hive}">
+ <include name="**/TEST-*.xml"/>
+ </fileset>
+ <report format="noframes" todir="${test.build.dir}"/>
+ </junitreport>
+ </target>
<target name="clean-test">
<subant target="clean-test">