You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Pavel_K (Jira)" <ji...@apache.org> on 2020/05/18 12:11:00 UTC

[jira] [Comment Edited] (NETBEANS-2470) Better support for build-helper-maven-plugin plugin - sources added via "add-test-source" cannot be refactored AND add-test-resource is not supported

    [ https://issues.apache.org/jira/browse/NETBEANS-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17110205#comment-17110205 ] 

Pavel_K edited comment on NETBEANS-2470 at 5/18/20, 12:10 PM:
--------------------------------------------------------------

I totally agree with the reporter. I use NB 11.3 and can say that it is not possible to work in `/src/it/java` - it even doesn't automatically fix imports. Another problem, when you try to create file (for example class) somewhere in `/src/it/java` it is created somewhere in `/src/main/java`.


was (Author: pavel_k):
I totally agree with the reporter. I use NB 11.3 and can say that it is not possible to work in `/src/it/java` - it event doesn't automatically fix imports. Another problem, when you try to create file (for example class) somewhere in `/src/it/java` it is created somewhere in `/src/main/java`.

>  Better support for build-helper-maven-plugin plugin - sources added via "add-test-source" cannot be refactored AND add-test-resource is not supported
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-2470
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2470
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: apisupport - Maven
>    Affects Versions: 8.2, 9.0, 10.0, 11.0
>         Environment: Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
> Java: 1.8.0_201; Java HotSpot(TM) 64-Bit Server VM 25.201-b09
> Runtime: Java(TM) SE Runtime Environment 1.8.0_201-b09
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>            Reporter: Arnaud Bourrée
>            Assignee: ANTONIO FERRER GONZALEZ
>            Priority: Major
>
> Old issue https://netbeans.org/bugzilla/show_bug.cgi?id=231240
> When we separate integration tests from unit tests in different folders as suggested [here|https://cwiki.apache.org/confluence/display/MAVENOLD/best+practices+-+testing+strategies] 
> We need build-helper-maven-plugin with the following configuration:
> {{<execution>
>         <id>add-test-source</id>
>         <goals>
>             <goal>add-test-source</goal>
>         </goals>
>         <configuration>
>             <sources>
>                 <source>src/it/java</source>
>                 <source>src/it/resources</source>
>             </sources>
>         </configuration>
> </execution>
> }}
> Many IDEs support second test folder, NetBeans show it as Generated folder: "Generated Test Sources (java)"/ "Generated Test Sourced (resources)" nodes in the project tree.
> And yes you cannot do any refactoring (Move/Copy/Refactoring hints) in classes below those nodes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists