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.
Product Version: NetBeans IDE Dev (Build 201203280401) Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402 System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb) User directory: /Users/tomas/Library/Application Support/NetBeans/dev Cache directory: /Users/tomas/Library/Caches/NetBeans/dev ---------- - create j2se project - create testNG test case - add some test method, run single test by shift-f6 -> /Users/tomas/Library/Caches/NetBeans/dev/executor-snippets/junit.xml:80: The following error occurred while executing this line: /Users/tomas/Library/Caches/NetBeans/dev/executor-snippets/junit.xml:63: The <classpath> for <junit> must include junit.jar if not in Ant's own classpath BUILD FAILED (total time: 0 seconds) installing junit (which should not be necessary) does not solve this issue.
workaround: junit must be added to compile classpath (either manually, or by creating junit test class for project)
Compile-on-save feature is not implemented. Please disable CoS from Project Properties -> Build -> Compiling. This should work
Yes, it works, thanks. But from user's point of view there's no way to figure out what's going on; would it be possible to e.g. add informative message that this action does not work with CoS ?
actually preferred solution should be to implement CoS for testng tests (see issue #149464) the easiest (but IMO wrong way) is to add testng related targets to junit.xml/junit-debug.xml snippets in java.source.ant module better solution would be to have some (friend?) SPI in a module with JavaRunner which would allow other modules to plug into JavaRunner. Ie something like: interface SnippetProvider { URL getScriptSnippet(String action, Lookup context); } Honzo, which solution would you prefer? I can prepare a patch but I'd like to know which way to go in order to get it accepted. Thanks.
btw: one more solution would be to just add testng script snippet directly to java.source.ant and implement what's needed there
Adding it into java.source.ant will be good enough.
*** Bug 211246 has been marked as a duplicate of this bug. ***
*** Bug 211376 has been marked as a duplicate of this bug. ***
http://hg.netbeans.org/core-main/rev/6c6d8369b4eb http://hg.netbeans.org/core-main/rev/bc6d289de9de
Integrated into 'main-golden', will be available in build *201204200400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6c6d8369b4eb User: Lukas Jungmann <jungi@netbeans.org> Log: BZ#149464, BZ#210293 - CoS for TestNG