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.
Summary: | Unable to run single test (s-f6) | ||
---|---|---|---|
Product: | java | Reporter: | Tomas Danek <musilt2> |
Component: | TestNG | Assignee: | Theofanis Oikonomou <theofanis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cyhelsky, jlahoda, jungi, ulfzibis |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 149464 | ||
Bug Blocks: |
Description
Tomas Danek
2012-03-28 14:22:55 UTC
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. *** 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 |