You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by emerson <ec...@gmail.com> on 2010/11/04 15:47:28 UTC

Re: multi-module agregated test report

Hi Jesse

I still need to use maven for generating the aggregation.
You are saying that Junit reports should would just fine for that then?

regards
Emerson

On 5 October 2010 13:30, Jesse Farinacci <ji...@gmail.com> wrote:
> Hi Emerson,
>
> On Tue, Oct 5, 2010 at 5:25 AM, emerson <ec...@gmail.com> wrote:
>> Should I presume there is no equivalent to the aggregated dashboard of M1?
>
> Yes. There is no equivalent for the M1 dashboard. Some report plugins
> support aggregation, but that is on a per-plugin basis.
>
> I realize what I'm about to suggest is even more bold than the
> statements that an MRM is a necessary component for proper Maven
> function in any environment of even minor sophistication (which it
> is), but.. You should consider running Hudson with all of the static
> code analysis tools, and test reporting, enabled. Hudson handles
> proper module {checkstyle, findugs, pmd, test} aggregation on your
> behalf, and in a spectacularly useful and easy way.
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by Stephen Connolly <st...@gmail.com>.
If your packages don't overlap then packages should give the per-module
stats.

On 30 November 2010 11:40, emerson <ec...@gmail.com> wrote:

> The main problem isn't about allowing overlapping packages, but a way
> for the reports to show grouped by module.
>
> On 26 November 2010 22:18, Stephen Connolly
> <st...@gmail.com> wrote:
> > There are good reasons for not having overlapping packages in separate
> jars.
> > Namely when alves security manager is running, our if the jar is signed
> then
> > they are treated as separate packages
> >
> > - Stephen
> >
> > ---
> > Sent from my Android phone, so random spelling mistakes are a direct
> result
> > of using swype to type on the screen
> >
> > On 26 Nov 2010 17:31, "Jesse Farinacci" <ji...@gmail.com> wrote:
> >
> > Greetings Emerson,
> >
> >
> > On Fri, Nov 26, 2010 at 10:30 AM, emerson <ec...@gmail.com>
> > wrote:
> >> I believe it is cor...
> > That does appear to be the case, but I would be remiss if I didn't
> > point out the somewhat contradictory requests you're making. You want
> > the aggregation to maintain the separation. :-)
> >
> > To address your previous observation about Hudson splitting out by
> > package, I suppose that may be true but I have structured my projects
> > in such a way (and I suspect most users have) where this is not an
> > issue. More specifically, for every project I can remember, there have
> > been no Java-package/Maven-module path name conflicts.
> >
> > You could open an enhancement request at the plugin's JIRA instance[0]
> > but I would expect this enhancement to be fairly unpopular (not
> > negatively popular, but disinterested) given the aforementioned
> > opposing philosophical goals.
> >
> > -Jesse
> >
> > [0] http://jira.codehaus.org/browse/SUREFIRE
> >
> >
> > --
> > There are 10 types of people in this world, those
> > that can read binary and those that can not.
> > ...
> >
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-he...
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: multi-module agregated test report

Posted by emerson <ec...@gmail.com>.
The main problem isn't about allowing overlapping packages, but a way
for the reports to show grouped by module.

On 26 November 2010 22:18, Stephen Connolly
<st...@gmail.com> wrote:
> There are good reasons for not having overlapping packages in separate jars.
> Namely when alves security manager is running, our if the jar is signed then
> they are treated as separate packages
>
> - Stephen
>
> ---
> Sent from my Android phone, so random spelling mistakes are a direct result
> of using swype to type on the screen
>
> On 26 Nov 2010 17:31, "Jesse Farinacci" <ji...@gmail.com> wrote:
>
> Greetings Emerson,
>
>
> On Fri, Nov 26, 2010 at 10:30 AM, emerson <ec...@gmail.com>
> wrote:
>> I believe it is cor...
> That does appear to be the case, but I would be remiss if I didn't
> point out the somewhat contradictory requests you're making. You want
> the aggregation to maintain the separation. :-)
>
> To address your previous observation about Hudson splitting out by
> package, I suppose that may be true but I have structured my projects
> in such a way (and I suspect most users have) where this is not an
> issue. More specifically, for every project I can remember, there have
> been no Java-package/Maven-module path name conflicts.
>
> You could open an enhancement request at the plugin's JIRA instance[0]
> but I would expect this enhancement to be fairly unpopular (not
> negatively popular, but disinterested) given the aforementioned
> opposing philosophical goals.
>
> -Jesse
>
> [0] http://jira.codehaus.org/browse/SUREFIRE
>
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
> ...
>
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-he...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by Stephen Connolly <st...@gmail.com>.
There are good reasons for not having overlapping packages in separate jars.
Namely when alves security manager is running, our if the jar is signed then
they are treated as separate packages

- Stephen

---
Sent from my Android phone, so random spelling mistakes are a direct result
of using swype to type on the screen

On 26 Nov 2010 17:31, "Jesse Farinacci" <ji...@gmail.com> wrote:

Greetings Emerson,


On Fri, Nov 26, 2010 at 10:30 AM, emerson <ec...@gmail.com>
wrote:
> I believe it is cor...
That does appear to be the case, but I would be remiss if I didn't
point out the somewhat contradictory requests you're making. You want
the aggregation to maintain the separation. :-)

To address your previous observation about Hudson splitting out by
package, I suppose that may be true but I have structured my projects
in such a way (and I suspect most users have) where this is not an
issue. More specifically, for every project I can remember, there have
been no Java-package/Maven-module path name conflicts.

You could open an enhancement request at the plugin's JIRA instance[0]
but I would expect this enhancement to be fairly unpopular (not
negatively popular, but disinterested) given the aforementioned
opposing philosophical goals.

-Jesse

[0] http://jira.codehaus.org/browse/SUREFIRE


-- 
There are 10 types of people in this world, those
that can read binary and those that can not.
...

To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-he...

Re: multi-module agregated test report

Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings Emerson,

On Fri, Nov 26, 2010 at 10:30 AM, emerson <ec...@gmail.com> wrote:
> I believe it is correct to say that MAVEN 2 HAS NO WAY to aggregate
> surefire reports from different sub-modules and at the same time show
> a summary for each module? Could some one confirm this,then I will
> look for another solution.

That does appear to be the case, but I would be remiss if I didn't
point out the somewhat contradictory requests you're making. You want
the aggregation to maintain the separation. :-)

To address your previous observation about Hudson splitting out by
package, I suppose that may be true but I have structured my projects
in such a way (and I suspect most users have) where this is not an
issue. More specifically, for every project I can remember, there have
been no Java-package/Maven-module path name conflicts.

You could open an enhancement request at the plugin's JIRA instance[0]
but I would expect this enhancement to be fairly unpopular (not
negatively popular, but disinterested) given the aforementioned
opposing philosophical goals.

-Jesse

[0] http://jira.codehaus.org/browse/SUREFIRE

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by emerson <ec...@gmail.com>.
I believe it is correct to say that MAVEN 2 HAS NO WAY to aggregate
surefire reports from different sub-modules and at the same time show
a summary for each module? Could some one confirm this,then I will
look for another solution.

Thanks


On 26 November 2010 13:17, emerson <ec...@gmail.com> wrote:
>> This is the default base case which is handled just fine without any
>> other tools outside of Maven. Please refer to
>> http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo.html
>
>
> Hi Jesse, unfortunetaly, the generated report just separates by
> package and not by module.
>
> I created 2 sample projects using archetypes with
> maven-archetype-quickstart, and added them to the parent pom, with the
> respective maven report:
>
> Is there anything that I am missing here?
>
> This is my parent pom:
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>  http://maven.apache.org/maven-v4_0_0.xsd">
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>com.yell</groupId>
>  <artifactId>parent</artifactId>
>  <packaging>pom</packaging>
>  <name>autotests</name>
>  <version>1.0-SNAPSHOT</version>
>  <description>Automated Test Suite</description>
>  <inceptionYear>2010</inceptionYear>
>  <modules>
>    <module>moduleA</module>
>    <module>moduleB</module>
>  </modules>
> <dependencies>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>4.7</version>
>    </dependency>
>  </dependencies>
>  <reporting>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-surefire-report-plugin</artifactId>
>         <configuration>
>          <aggregate>true</aggregate>
>        </configuration>
>      </plugin>
>    </plugins>
>  </reporting>
> </project>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by emerson <ec...@gmail.com>.
> This is the default base case which is handled just fine without any
> other tools outside of Maven. Please refer to
> http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo.html


Hi Jesse, unfortunetaly, the generated report just separates by
package and not by module.

I created 2 sample projects using archetypes with
maven-archetype-quickstart, and added them to the parent pom, with the
respective maven report:

Is there anything that I am missing here?

This is my parent pom:


<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.yell</groupId>
  <artifactId>parent</artifactId>
  <packaging>pom</packaging>
  <name>autotests</name>
  <version>1.0-SNAPSHOT</version>
  <description>Automated Test Suite</description>
  <inceptionYear>2010</inceptionYear>
  <modules>
    <module>moduleA</module>
    <module>moduleB</module>
 </modules>
<dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
    </dependency>
  </dependencies>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
         <configuration>
          <aggregate>true</aggregate>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by emerson <ec...@gmail.com>.
> I'm not familiar with Anthill, sorry. I would be astonished if they
> didn't have a way of reporting on surefire reports.

Yes it does,but it shows all the tests as if it was one single project.
Thanks anyway, I will try what you said.

regards
emerson
>
> Good luck,
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,

On Thu, Nov 4, 2010 at 11:13 AM, emerson <ec...@gmail.com> wrote:
> Thanks for the tip Nick, but this very special case I have a project
> on maven with several submodules, and want to see the pass rate per
> module.

This is the default base case which is handled just fine without any
other tools outside of Maven. Please refer to
http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo.html

> I'm running this in Anthill, which can also be integrated with Sonar.
> My problem now is to generate the summary report.
> Could someone point to an example?

I'm not familiar with Anthill, sorry. I would be astonished if they
didn't have a way of reporting on surefire reports.

Good luck,
-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by emerson <ec...@gmail.com>.
Thanks for the tip Nick, but this very special case I have a project
on maven with several submodules, and want to see the pass rate per
module.

I'm running this in Anthill, which can also be integrated with Sonar.
My problem now is to generate the summary report.
Could someone point to an example?

regards
emerson

On 4 November 2010 14:54, Nick Stolwijk <ni...@gmail.com> wrote:
> I would suggest you use Maven(+Hudson)+Sonar.
>
> Maven for building and gathering information
> Hudson for CI (but it can be left out)
> Sonar for reporting
>
> Sonar can do nice reports for coverage, unit tests, QA metrics, etc.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Thu, Nov 4, 2010 at 3:47 PM, emerson <ec...@gmail.com> wrote:
>> Hi Jesse
>>
>> I still need to use maven for generating the aggregation.
>> You are saying that Junit reports should would just fine for that then?
>>
>> regards
>> Emerson
>>
>> On 5 October 2010 13:30, Jesse Farinacci <ji...@gmail.com> wrote:
>>> Hi Emerson,
>>>
>>> On Tue, Oct 5, 2010 at 5:25 AM, emerson <ec...@gmail.com> wrote:
>>>> Should I presume there is no equivalent to the aggregated dashboard of M1?
>>>
>>> Yes. There is no equivalent for the M1 dashboard. Some report plugins
>>> support aggregation, but that is on a per-plugin basis.
>>>
>>> I realize what I'm about to suggest is even more bold than the
>>> statements that an MRM is a necessary component for proper Maven
>>> function in any environment of even minor sophistication (which it
>>> is), but.. You should consider running Hudson with all of the static
>>> code analysis tools, and test reporting, enabled. Hudson handles
>>> proper module {checkstyle, findugs, pmd, test} aggregation on your
>>> behalf, and in a spectacularly useful and easy way.
>>>
>>> -Jesse
>>>
>>> --
>>> There are 10 types of people in this world, those
>>> that can read binary and those that can not.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multi-module agregated test report

Posted by Nick Stolwijk <ni...@gmail.com>.
I would suggest you use Maven(+Hudson)+Sonar.

Maven for building and gathering information
Hudson for CI (but it can be left out)
Sonar for reporting

Sonar can do nice reports for coverage, unit tests, QA metrics, etc.

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Nov 4, 2010 at 3:47 PM, emerson <ec...@gmail.com> wrote:
> Hi Jesse
>
> I still need to use maven for generating the aggregation.
> You are saying that Junit reports should would just fine for that then?
>
> regards
> Emerson
>
> On 5 October 2010 13:30, Jesse Farinacci <ji...@gmail.com> wrote:
>> Hi Emerson,
>>
>> On Tue, Oct 5, 2010 at 5:25 AM, emerson <ec...@gmail.com> wrote:
>>> Should I presume there is no equivalent to the aggregated dashboard of M1?
>>
>> Yes. There is no equivalent for the M1 dashboard. Some report plugins
>> support aggregation, but that is on a per-plugin basis.
>>
>> I realize what I'm about to suggest is even more bold than the
>> statements that an MRM is a necessary component for proper Maven
>> function in any environment of even minor sophistication (which it
>> is), but.. You should consider running Hudson with all of the static
>> code analysis tools, and test reporting, enabled. Hudson handles
>> proper module {checkstyle, findugs, pmd, test} aggregation on your
>> behalf, and in a spectacularly useful and easy way.
>>
>> -Jesse
>>
>> --
>> There are 10 types of people in this world, those
>> that can read binary and those that can not.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org