Arnaud Bourrée created NETBEANS-2470:
----------------------------------------
Summary: 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: 11.0, 10.0, 9.0, 8.2
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
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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists