Generate tests summary after running tests.

This commit is contained in:
Krzysztof Daniel 2013-04-12 14:22:02 +02:00
parent 6642d3ca21
commit 49967ccf00
2 changed files with 37 additions and 1 deletions

View File

@ -311,6 +311,38 @@
<antcall target="markCurrentTime">
<param
@@ -1363,6 +1293,31 @@
value="end longrunning" />
</antcall>
+ <!-- Copy over the XML to generate a top-level report for all of the tests -->
+ <mkdir dir="${results}/origXml" />
+ <copy failonerror="false" todir="${results}/origXml">
+ <fileset dir="${results}/xml">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+
+ <!-- Un-"collect" the results -->
+ <replace dir="${results}/origXml" value="">
+ <include name="**/*.xml" />
+ <replacetoken>&lt;testsuites&gt;</replacetoken>
+ </replace>
+ <replace dir="${results}/origXml" value="">
+ <include name="**/*.xml" />
+ <replacetoken>&lt;/testsuites&gt;</replacetoken>
+ </replace>
+
+ <!-- Aggregate XML report files -->
+ <junitreport todir="${results}/xml" tofile="org.eclipse.sdk.tests.xml">
+ <fileset dir="${results}/origXml" includes="*.xml" />
+ </junitreport>
+
+ <!-- Generate top-level HTML report -->
+ <xslt style="${repoLocation}/JUNIT.XSL" basedir="${results}/xml" includes="org.eclipse.sdk.tests.xml" destdir="${results}/html" />
</target>
<!--
@@ -1409,7 +1339,7 @@
<antcall target="e4CssSwt" />
<antcall target="e4UI" />

View File

@ -51,7 +51,7 @@ fi;
Summary: An open, extensible IDE
Name: %{?scl_prefix}eclipse
Version: %{eclipse_version}
Release: 0.37%{?dist}
Release: 0.38%{?dist}
License: EPL
Group: Development/Tools
URL: http://www.eclipse.org/
@ -740,6 +740,7 @@ sed -i "s@/usr/share/eclipse@%{libdir}/%{pkg_name}@" $RPM_BUILD_ROOT%{_libdir}/%
unzip eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/target/eclipse-junit-tests-bundle.zip -d $RPM_BUILD_ROOT/%{_javadir}/
unzip $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/eclipse-junit-tests-*.zip -d $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing
cp eclipse.platform.releng/bundles/org.eclipse.test/JUNIT.XSL $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing
rm $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/eclipse-junit-tests-*.zip
rm $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/runtests.bat
@ -1027,6 +1028,9 @@ fi
%{_libdir}/%{pkg_name}/plugins/org.eclipse.osgi.util_*
%changelog
* Fri Apr 12 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:4.3.0-0.38
- Generate tests summary after running tests.
* Thu Apr 11 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:4.3.0-0.37
- Rebuild to include latest deps.