MPDASHBOARD-18. Added Maven Change Log aggregators and Maven Tasks List aggregators. Thanks to Philippe Kernevez.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
8a30834d7b
commit
09b7faa2d7
16 files changed
+479
-3
No files matched your search
@@ -52,5 +52,44 @@
|
||||
<x:set var="count" select="count($doc//body/section/table/tr)"/>
|
||||
<assert:assertEquals expected="4" value="${count.intValue().toString()}"/>
|
||||
|
||||
<x:set var="countTitleColumn" select="count($doc//body/section/table/tr[1]/th)"/>
|
||||
<x:set var="countContentColumn" select="count($doc//body/section/table/tr[2]/td)"/>
|
||||
<!-- One column for the project name and one for the 23 aggregators -->
|
||||
<assert:assertEquals expected="24" value="${countTitleColumn.intValue().toString()}"/>
|
||||
<assert:assertEquals expected="24" value="${countContentColumn.intValue().toString()}"/>
|
||||
|
||||
<!-- TasklistClass aggregator test -->
|
||||
<x:set var="title" select="string($doc//body/section/table/tr[1]/th[20])"/>
|
||||
<assert:assertEquals expected="Classes Tasks" value="${title}"/>
|
||||
<x:set var="taskCount" select="string($doc//body/section/table/tr[2]/td[20])"/>
|
||||
<assert:assertEquals expected="1" value="${taskCount}"/>
|
||||
|
||||
<!-- TasklistMethod aggregator test -->
|
||||
<x:set var="title" select="string($doc//body/section/table/tr[1]/th[21])"/>
|
||||
<assert:assertEquals expected="Methods Tasks" value="${title}"/>
|
||||
<x:set var="taskCount" select="string($doc//body/section/table/tr[2]/td[21])"/>
|
||||
<assert:assertEquals expected="2" value="${taskCount}"/>
|
||||
|
||||
<!-- Tasklist aggregator test -->
|
||||
<x:set var="title" select="string($doc//body/section/table/tr[1]/th[22])"/>
|
||||
<assert:assertEquals expected="All Tasks" value="${title}"/>
|
||||
<x:set var="taskCount" select="string($doc/document/body/section/table/tr[2]/td[22])"/>
|
||||
<assert:assertEquals expected="3" value="${taskCount}"/>
|
||||
|
||||
<!-- SCM Changed Files aggregator test -->
|
||||
<x:set var="title" select="string($doc/document/body/section/table/tr[1]/th[23])"/>
|
||||
<assert:assertEquals expected="SCM Changed Files" value="${title}"/>
|
||||
<x:set var="taskCount" select="string($doc/document/body/section/table/tr[2]/td[23])"/>
|
||||
<assert:assertEquals expected="8" value="${taskCount}"/>
|
||||
|
||||
<!-- SCM Changed Commit aggregator test -->
|
||||
<x:set var="title" select="string($doc/document/body/section/table/tr[1]/th[24])"/>
|
||||
<assert:assertEquals expected="SCM commits" value="${title}"/>
|
||||
<x:set var="taskCount" select="string($doc/document/body/section/table/tr[2]/td[24])"/>
|
||||
<assert:assertEquals expected="4" value="${taskCount}"/>
|
||||
|
||||
|
||||
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
@@ -40,7 +40,7 @@ maven.dashboard.runreactor = false
|
||||
|
||||
# Define what dashboard aggregators will be run. This property is inherited
|
||||
# by the subprojects and thus they don't need to define it again.
|
||||
maven.dashboard.aggregators = csall,cserrors,cswarnings,csfiles,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl,pmdfiles,pmdviolations,fbfiles,fbviolations,jcoveragelipc,jcoverageloc
|
||||
maven.dashboard.aggregators = csall,cserrors,cswarnings,csfiles,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl,pmdfiles,pmdviolations,fbfiles,fbviolations,jcoveragelipc,jcoverageloc,tasklistclass,tasklistmethod,tasklist,scmchangedfiles,scmchangedcommit
|
||||
|
||||
# Make sure that an XML report is generated whenever Clover is run. Also
|
||||
# inherited by the subprojects.
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<!-- File used to simulate some changelog being generated. We're manually
|
||||
introducing this file because we wish to be sure there are always
|
||||
changelogs in our tests (we are asserting for them in the top level
|
||||
maven.xml file) -->
|
||||
<changelog>
|
||||
<changelog-entry>
|
||||
<date>2004-11-25</date>
|
||||
<time>14:00:00</time>
|
||||
<author><![CDATA[Philippe Kernevez]]></author>
|
||||
<file>
|
||||
<name>src/application/META-INF/.cvsignore</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<file>
|
||||
<name>src/application/META-INF/delete_me.txt</name>
|
||||
<revision>1.2</revision>
|
||||
</file>
|
||||
<msg><![CDATA[*** empty log message ***
|
||||
]]></msg>
|
||||
</changelog-entry>
|
||||
<changelog-entry>
|
||||
<date>2004-11-25</date>
|
||||
<time>13:52:01</time>
|
||||
<author><![CDATA[Philippe Kernevez]]></author>
|
||||
<file>
|
||||
<name>src/application/META-INF/delete_me.txt</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<msg><![CDATA[*** empty log message ***
|
||||
]]></msg>
|
||||
</changelog-entry>
|
||||
<changelog-entry>
|
||||
<date>2004-11-25</date>
|
||||
<time>13:41:30</time>
|
||||
<author><![CDATA[Philippe Kernevez]]></author>
|
||||
<file>
|
||||
<name>src/application/META-INF/application.xml</name>
|
||||
<revision>1.4</revision>
|
||||
</file>
|
||||
<msg><![CDATA[*** empty log message ***
|
||||
]]></msg>
|
||||
</changelog-entry>
|
||||
<changelog-entry>
|
||||
<date>2004-11-25</date>
|
||||
<time>11:13:58</time>
|
||||
<author><![CDATA[Philippe Kernevez]]></author>
|
||||
<file>
|
||||
<name>datamodel/delete_me.txt</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<file>
|
||||
<name>doc/delete_me.txt</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<file>
|
||||
<name>release-notes/delete_me.txt</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<file>
|
||||
<name>script/delete_me.txt</name>
|
||||
<revision>1.1</revision>
|
||||
</file>
|
||||
<msg><![CDATA[*** empty log message ***
|
||||
]]></msg>
|
||||
</changelog-entry>
|
||||
</changelog>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:j="jelly:core">
|
||||
|
||||
<preGoal name="dashboard:report-single">
|
||||
<copy file="./conf/test/changelog.xml" todir="${maven.build.dir}"/>
|
||||
</preGoal>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -40,5 +40,6 @@
|
||||
<report>maven-junit-report-plugin</report>
|
||||
<report>maven-simian-plugin</report>
|
||||
<report>maven-jcoverage-plugin</report>
|
||||
<report>maven-tasklist-plugin</report>
|
||||
</reports>
|
||||
</project>
|
||||
+10
-1
@@ -58,17 +58,26 @@ package org.apache.maven.dashboard.test.subproject1;
|
||||
|
||||
/**
|
||||
* Example voluntarily generating checsktyle errors.
|
||||
* @todo Used by tasklistclass & tasklist aggregators
|
||||
*
|
||||
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
||||
*
|
||||
* @version $Id: Sample.java,v 1.2 2004/04/30 14:47:11 vmassol Exp $
|
||||
* @version $Id: Sample.java,v 1.3 2004/11/26 08:33:00 vmassol Exp $
|
||||
*/
|
||||
public class Sample
|
||||
{
|
||||
/**
|
||||
* @todo Used by tasklistmethod & tasklist aggregators
|
||||
*
|
||||
*/
|
||||
public void unusedMethod()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Used by tasklistmethod & tasklist aggregators
|
||||
*
|
||||
*/
|
||||
public void someMethod()
|
||||
{
|
||||
new Boolean(true);
|
||||
|
||||
Reference in new issue
Block a user