This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have a multi-project maven project where the parent pom.xml declares TestNG as a test scoped dependency and all of its sub-projects inherit this dependency. Whenever I create a test class in a sub-project Netbeans appears to simply check if the sub-project explicitly declares testng dependency and if it does not adds it as a dependency regardless of whether the parent project declares it. Rather than simply check to see if the sub-project contains testng dependency and adding it if it not present Netbeans should check the sub-project's effective dependencies for the pretense of TestNG dependency.
Changeset: e089f3b789a3 Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2015-09-02 18:14 Message:
Should work as expected now. Please verify. Thank you
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e089f3b789a3 User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Task #249118 - Creating Test Always Adds TestNG Dependency to Maven Sub-Projects