maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Sauzedde (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (SUREFIRE-570) Empty surefire reports when a multi-module project is ran with multiple report directories in surefire-report configuration
Date Tue, 01 Sep 2009 09:53:41 GMT

    [ http://jira.codehaus.org/browse/SUREFIRE-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189345#action_189345
] 

Thomas Sauzedde commented on SUREFIRE-570:
------------------------------------------

Did some investigations  ...

When "aggregate" is used, and reportDirectories are NOT configured explicilety, the plugin
builds a reportDirectories array from each module in the reactor, and then the reports are
generated.

When reportDirectories are configured, the step above is skipped ...

But if the configuration is inherited, and reportDirectories are set with something like ${basedir},
the basedir is resolved from the "parent" project POV, but not for each modules in the reactor
...

I'm going to attach a patch to solve this by  looking in each modules to see if there is a
report directory around ...

> Empty surefire reports when a multi-module project is ran with multiple report directories
in surefire-report configuration
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-570
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-570
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.4.3
>         Environment: Tested on Windows XP & Linux (Ubuntu 09.04) with Maven 2.0.10
>            Reporter: Thomas Sauzedde
>         Attachments: surefire-report-test.tar.gz
>
>
> With a multi-module project, if the reporting configuration set multiple report directories
(in the parent POM), then the report / report-only goals generate empty report.
> The main / aggregated report says this is 0 Tests.
> Module reports are empty html files.
> The attached project is a sample project to reproduce this ...
> The parent POM reporting conf explicitely set 2 reporting directories.
> From the "parent" POM :
>     - mvn surefire-report:report ==> normal report per modules, nothing to say
>     - mvn clean
>     - mvn surefire-report:report -Daggregate=true  ==> parent report with 0 tests,
empty html report for modules
>     - mvn surefire-report:report; mvn surefire-report:report-only -Daggregate=true ==>
idem, parent report with 0 tests, empty html report for modules

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message