maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Vaughan (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-846) Maven surefire plugin creates two surefire* directories in the ${project.build.directory}
Date Fri, 13 Apr 2012 15:47:02 GMT

    [ https://jira.codehaus.org/browse/SUREFIRE-846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296430#comment-296430
] 

Tom Vaughan commented on SUREFIRE-846:
--------------------------------------

| When can we have it applied?

No idea...I'm not a contributor ;-) but I agree it is pretty annoying. 
                
> Maven surefire plugin creates two surefire* directories in the ${project.build.directory}
> -----------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-846
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-846
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.12
>         Environment: Maven 3.0.4 ; Java 1.6.0_19 ; Linux 2.6.36.2
>            Reporter: Martin Todorov
>         Attachments: SUREFIRE-846.patch
>
>
> Hi,
> This is somewhere between a bug and a feature. I am filing it as per krosenv's suggestion.
> The Maven surefire plugin is creating two surefire* directories in the ${project.build.directory}:
> - surefire (empty after test executions)
> - surefire-reports (containing the output of the tests)
> I find this rather annoying. As far as I understand, the surefire directory is used during
the testing and it contains some temporary stuff which is removed after the execution of the
tests.
> I have tried looking up the option to remove the surefire directory, but I can seem to
find it. The thing is -- I have other projects that don't have this empty directory, just
the surefire-reports.
> This empty directory breaks tab autocomplete in the console which sort of bugs me, mainly
since the directory is empty.
> In addition, this is just the test plugin, not the reporting one. There is no section
in the project (not any parent).
> This is my surefire plugin setup:
> {code}
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.12</version>
>                 <configuration>
>                     <excludes>
>                         <exclude>**/*Abstr*Test*</exclude>
>                     </excludes>
>                 </configuration>
>             </plugin>
> {code}
> If this directory is really necessary, I would like to propose the following options:
> 1) Make surefire use one directory:
> {code}
> - surefire
> | |- reports
> | |- tmp
> {code}
> This way things will be tidy.
> 2) Have an option for the plugin which allows you to turn on the preserving of this directory
(I think it should be removed by default).
> Regards,
> Martin

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

        

Mime
View raw message