You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Jencks <da...@yahoo.com> on 2010/10/03 03:42:58 UTC

Failsafe (aggregate?) reports???

The maven-failsafe-plugin claims it's possible to produce failsafe reports using the maven-surefire-report-plugin but neither plugin has documentation I can find on how to do it.  Ideally I'd like to aggregate all the reports into one top-level report.

Does anyone know if this is documented anywhere or know of a working example?

thanks
david jencks


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


Re: Failsafe (aggregate?) reports???

Posted by Stephen Connolly <st...@gmail.com>.
You might have to add the "defaults" for surefire reports as the maven3
changes might mean that you are no-longer inheriting the defaults when
within the site plugin configuration section :-(

-Stephen

On 4 October 2010 08:27, David Jencks <da...@yahoo.com> wrote:

> Thanks,
>
> I can get that to work with maven 2.2.1 but modifying the configuration to
> work with maven 3 RC3 like this
>
>                <plugins>
>                    <plugin>
>                        <groupId>org.apache.maven.plugins</groupId>
>                        <artifactId>maven-site-plugin</artifactId>
>                        <configuration>
>                            <reportPlugins>
>                                <plugin>
>
>  <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-surefire-report-plugin</artifactId>
>                                    <version>2.6</version>
>                                    <reportSets>
>                                        <reportSet>
>                                            <id>integration-tests</id>
>                                            <reports>
>                                                <report>report-only</report>
>                                            </reports>
>                                            <configuration>
>                                                <aggregate>true</aggregate>
>
>  <outputName>failsafe-report</outputName>
>                                                <reportsDirectories>
>
>  <reportsDirectory>${project.basedir}/target/failsafe-reports</reportsDirectory>
>                                                </reportsDirectories>
>                                            </configuration>
>                                        </reportSet>
>                                    </reportSets>
>                                </plugin>
>                            </reportPlugins>
>                        </configuration>
>                    </plugin>
>                </plugins>
>
>
> I can't get any output related to failsafe reports although I think the
> plugin is running ( I get a surefire-reports.html page that shows 0 tests).
>
> Has anyone gotten this to work with maven  3?
>
> thanks
> david jencks
>
> On Oct 2, 2010, at 11:37 PM, Stephen Connolly wrote:
>
> > The
> >
> > Reporting integration test results
> >
> > Section on
> http://maven.apache.org/plugins/maven-failsafe-plugin/usage.html
> >
> > -Stephen
> >
> > On 3 October 2010 02:42, David Jencks <da...@yahoo.com> wrote:
> >>
> >> The maven-failsafe-plugin claims it's possible to produce failsafe
> reports using the maven-surefire-report-plugin but neither plugin has
> documentation I can find on how to do it.  Ideally I'd like to aggregate all
> the reports into one top-level report.
> >>
> >> Does anyone know if this is documented anywhere or know of a working
> example?
> >>
> >> thanks
> >> david jencks
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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: Failsafe (aggregate?) reports???

Posted by David Jencks <da...@yahoo.com>.
Thanks,

I can get that to work with maven 2.2.1 but modifying the configuration to work with maven 3 RC3 like this 

                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-site-plugin</artifactId>
                        <configuration>
                            <reportPlugins>
                                <plugin>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-surefire-report-plugin</artifactId>
                                    <version>2.6</version>
                                    <reportSets>
                                        <reportSet>
                                            <id>integration-tests</id>
                                            <reports>
                                                <report>report-only</report>
                                            </reports>
                                            <configuration>
                                                <aggregate>true</aggregate>
                                                <outputName>failsafe-report</outputName>
                                                <reportsDirectories>
                                                    <reportsDirectory>${project.basedir}/target/failsafe-reports</reportsDirectory>
                                                </reportsDirectories>
                                            </configuration>
                                        </reportSet>
                                    </reportSets>
                                </plugin>
                            </reportPlugins>
                        </configuration>
                    </plugin>
                </plugins>


I can't get any output related to failsafe reports although I think the plugin is running ( I get a surefire-reports.html page that shows 0 tests).

Has anyone gotten this to work with maven  3?

thanks
david jencks

On Oct 2, 2010, at 11:37 PM, Stephen Connolly wrote:

> The
> 
> Reporting integration test results
> 
> Section on http://maven.apache.org/plugins/maven-failsafe-plugin/usage.html
> 
> -Stephen
> 
> On 3 October 2010 02:42, David Jencks <da...@yahoo.com> wrote:
>> 
>> The maven-failsafe-plugin claims it's possible to produce failsafe reports using the maven-surefire-report-plugin but neither plugin has documentation I can find on how to do it.  Ideally I'd like to aggregate all the reports into one top-level report.
>> 
>> Does anyone know if this is documented anywhere or know of a working example?
>> 
>> thanks
>> david jencks
>> 
>> 
>> ---------------------------------------------------------------------
>> 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: Failsafe (aggregate?) reports???

Posted by Stephen Connolly <st...@gmail.com>.
The

Reporting integration test results

Section on http://maven.apache.org/plugins/maven-failsafe-plugin/usage.html

-Stephen

On 3 October 2010 02:42, David Jencks <da...@yahoo.com> wrote:
>
> The maven-failsafe-plugin claims it's possible to produce failsafe reports using the maven-surefire-report-plugin but neither plugin has documentation I can find on how to do it.  Ideally I'd like to aggregate all the reports into one top-level report.
>
> Does anyone know if this is documented anywhere or know of a working example?
>
> thanks
> david jencks
>
>
> ---------------------------------------------------------------------
> 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