You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Ackermann (JIRA)" <ji...@codehaus.org> on 2011/01/22 10:15:57 UTC

[jira] Created: (SUREFIRE-688) Aggregate report is empty for multi-module project

Aggregate report is empty for multi-module project
--------------------------------------------------

                 Key: SUREFIRE-688
                 URL: http://jira.codehaus.org/browse/SUREFIRE-688
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Report Plugin
    Affects Versions: 2.7.1
         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
            Reporter: Martin Ackermann
            Priority: Minor


The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 

Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.

Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?

The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.

If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

-- 
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

        

[jira] (SUREFIRE-688) Aggregate report is empty for multi-module project

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285822#comment-285822 ] 

Kristian Rosenvold commented on SUREFIRE-688:
---------------------------------------------

I think adding some docs on this one is probably the "best" thing to do
                
> Aggregate report is empty for multi-module project
> --------------------------------------------------
>
>                 Key: SUREFIRE-688
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-688
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.7.1
>         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
>            Reporter: Martin Ackermann
>            Priority: Minor
>         Attachments: trial-maven.zip
>
>
> The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 
> Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.
> Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?
> The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.
> If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-688) Aggregate report is empty for multi-module project

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283982#comment-283982 ] 

Stephen Connolly commented on SUREFIRE-688:
-------------------------------------------

Part of the issue is that the general consensus is that having reporting mojo's fork a lifecycle is a really bad plan, hence why the report-only mojo's have been introduced... perhaps we should deprecate the report mojo to explain.

In other words, the aggregate report should be empty unless you have invoked a lifecycle up as far as test previously... in fact if your project requires, for example a war from a dependent module, the current fork only as far as "test" will result in failures as the war will not have been packaged.

I am tempted to say the fix for this is to deprecate the "report" mojo and force everyone to invoke the lifecycle before building the site.... but that seems very harsh to do in a point release, and certainly too harsh to do without a vote on dev@maven first.

Kristian, I will leave the decision up to you ;-)

> Aggregate report is empty for multi-module project
> --------------------------------------------------
>
>                 Key: SUREFIRE-688
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-688
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.7.1
>         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
>            Reporter: Martin Ackermann
>            Priority: Minor
>         Attachments: trial-maven.zip
>
>
> The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 
> Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.
> Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?
> The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.
> If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-688) Aggregate report is empty for multi-module project

Posted by "Martin Ackermann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ackermann updated SUREFIRE-688:
--------------------------------------

    Attachment: trial-maven.zip

> Aggregate report is empty for multi-module project
> --------------------------------------------------
>
>                 Key: SUREFIRE-688
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-688
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.7.1
>         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
>            Reporter: Martin Ackermann
>            Priority: Minor
>         Attachments: trial-maven.zip
>
>
> The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 
> Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.
> Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?
> The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.
> If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

-- 
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

        

[jira] Commented: (SUREFIRE-688) Aggregate report is empty for multi-module project

Posted by "Jim McIver (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280975#comment-280975 ] 

Jim McIver commented on SUREFIRE-688:
-------------------------------------

Hi - Do you have any timescale for this fix ?  It's causing me some problems not being able to get an aggregated, project-level surefire report.  Thanks,  Jim

> Aggregate report is empty for multi-module project
> --------------------------------------------------
>
>                 Key: SUREFIRE-688
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-688
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.7.1
>         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
>            Reporter: Martin Ackermann
>            Priority: Minor
>         Attachments: trial-maven.zip
>
>
> The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 
> Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.
> Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?
> The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.
> If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-688) Aggregate report is empty for multi-module project

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252441#action_252441 ] 

Kristian Rosenvold commented on SUREFIRE-688:
---------------------------------------------

Thanks for creating a separate issue for this, which is much better than piggybacking onto a slightly different issue (SUREFIRE-666). I will try to fix this for 2.7.3

> Aggregate report is empty for multi-module project
> --------------------------------------------------
>
>                 Key: SUREFIRE-688
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-688
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.7.1
>         Environment: Maven 3.0.1, Site 3.0-beta-3, Windows XP SP3
>            Reporter: Martin Ackermann
>            Priority: Minor
>         Attachments: trial-maven.zip
>
>
> The parent project has a site configuration with an aggregated surefire report and inherited set to false. The child module has one test. 
> Problem: "mvn clean; mvn site-deploy" creates a surefire report with zero tests. With 2.7.2-SNAPSHOT as of today the problem is the same.
> Why does the surefire report plugin not immediately descend to the child modules, compile and test them while executing the aggregate report for the parent module?
> The problem seems to be that the aggregate surefire report for the parent is generated but the surefire plugin doesn't run the tests for the child modules before. So the aggregate surefire report doesn't find any surefire test results for the child modules.
> If I run "mvn clean test; mvn site-deploy", the resulting aggregate surefire report is correct. The reason is probably that the site-deploy collects the surefire results for the child modules from the previous run.

-- 
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