From 1c5fb567e3a3c7abb4372f9f7563a4ed80a3fc6e Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 30 Apr 2004 12:31:14 +0000 Subject: [PATCH] Added Simian total duplicate line aggregator + improved error handling git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115098 13f79535-47bb-0310-9956-ffa450edef68 --- dashboard/plugin.jelly | 6 + dashboard/plugin.properties | 9 +- .../aggregators/simiantdl.jelly | 40 ++++++ dashboard/src/plugin-test/project.properties | 3 +- .../subproject1/project.properties | 2 +- .../src/plugin-test/subproject1/project.xml | 2 + .../subproject2/project.properties | 2 +- .../subproject3/project.properties | 2 +- dashboard/xdocs/aggregators.xml | 7 + dashboard/xdocs/changes.xml | 6 + dashboard/xdocs/properties.xml | 130 ++++++++++++------ 11 files changed, 165 insertions(+), 44 deletions(-) create mode 100644 dashboard/src/plugin-resources/aggregators/simiantdl.jelly diff --git a/dashboard/plugin.jelly b/dashboard/plugin.jelly index 75c44c6d..eb8ecd6c 100644 --- a/dashboard/plugin.jelly +++ b/dashboard/plugin.jelly @@ -168,6 +168,12 @@ + + + + Invalid aggregator name [${aggregatorName}] + + diff --git a/dashboard/plugin.properties b/dashboard/plugin.properties index 90c9fe67..b7ab248d 100644 --- a/dashboard/plugin.properties +++ b/dashboard/plugin.properties @@ -141,9 +141,16 @@ maven.dashboard.aggregator.juniterrors.label = JUnit Errors maven.dashboard.aggregator.juniterrors.goal = junit-report:report maven.dashboard.aggregator.juniterrors.description = Number of JUnit test errors -# Properties for the JUnit Pass Rate aggregator +# Properties for the JUnit Pass Rate aggregator maven.dashboard.aggregator.junitpassrate.script = ${maven.dashboard.aggregators.dir}/junitpassrate.jelly maven.dashboard.aggregator.junitpassrate.artifact = ${maven.build.dir}/TESTS-TestSuites.xml maven.dashboard.aggregator.junitpassrate.label = JUnit Pass Rate maven.dashboard.aggregator.junitpassrate.goal = junit-report:report maven.dashboard.aggregator.junitpassrate.description = Percentage of JUnit tests that have passed vs tests in error or failed + +# Properties for the Simian duplicate lines aggregator +maven.dashboard.aggregator.simiantdl.script = ${maven.dashboard.aggregators.dir}/simiantdl.jelly +maven.dashboard.aggregator.simiantdl.artifact = ${maven.build.dir}/generated-xdocs/simian-report.xml +maven.dashboard.aggregator.simiantdl.label = Simian TDL +maven.dashboard.aggregator.simiantdl.goal = maven-simian-plugin:report +maven.dashboard.aggregator.simiantdl.description = Simian Total Duplicate Lines diff --git a/dashboard/src/plugin-resources/aggregators/simiantdl.jelly b/dashboard/src/plugin-resources/aggregators/simiantdl.jelly new file mode 100644 index 00000000..12eda87e --- /dev/null +++ b/dashboard/src/plugin-resources/aggregators/simiantdl.jelly @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dashboard/src/plugin-test/project.properties b/dashboard/src/plugin-test/project.properties index cd67fe8d..e94d7bea 100644 --- a/dashboard/src/plugin-test/project.properties +++ b/dashboard/src/plugin-test/project.properties @@ -18,10 +18,11 @@ # P R O J E C T P R O P E R T I E S # ------------------------------------------------------------------- maven.xdoc.date=left -## maven.xdoc.version=${pom.currentVersion} +maven.xdoc.version=${pom.currentVersion} maven.checkstyle.header.file = ${basedir}/LICENSE.txt offline=true +maven.simian.linecount = 5 # MUST specify these, even though they are the defaults, so we can run # inside reactor where they were already set. diff --git a/dashboard/src/plugin-test/subproject1/project.properties b/dashboard/src/plugin-test/subproject1/project.properties index 3ea21cdb..df62491e 100644 --- a/dashboard/src/plugin-test/subproject1/project.properties +++ b/dashboard/src/plugin-test/subproject1/project.properties @@ -21,6 +21,6 @@ maven.xdoc.date=left ## maven.xdoc.version=${pom.currentVersion} maven.checkstyle.header.file = ${basedir}/../LICENSE.txt -maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors +maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl maven.clover.report.xml = true diff --git a/dashboard/src/plugin-test/subproject1/project.xml b/dashboard/src/plugin-test/subproject1/project.xml index 9905f365..ca22f33f 100644 --- a/dashboard/src/plugin-test/subproject1/project.xml +++ b/dashboard/src/plugin-test/subproject1/project.xml @@ -1,4 +1,5 @@ +