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.

Bug 229860 - Ctrl-F6 (Test File) does not work from the tested classes for TestNG tests in NB module projects
Summary: Ctrl-F6 (Test File) does not work from the tested classes for TestNG tests in...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 13:35 UTC by Jan Lahoda
Modified: 2013-05-19 02:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2013-05-16 13:35:06 UTC
[recent trunk custom build]

I have a module suite (tested with a standalone module as well), and I have created a TestNG test in it: for an existing class (d.NewClass) in the source directory, I used Tools/Create Tests, chose TestNG as the framework, but left the proposed name: "d.NewClassNGTest". The test is created, and can be run using Test File/Ctrl-F6 while the test is opened in the editor. But when the tested class is opened in the editor, the Test File action is disabled. For JUnit tests, this action works in the tested class, and this makes using the TestNG tests very hard.
Comment 1 Theofanis Oikonomou 2013-05-17 13:47:41 UTC
Fixed: http://hg.netbeans.org/core-main/rev/19aeb2856de1. Also made an additional fix (specifically added VerboseReporter listener in common.xml's testng task) related to bug 223660.
Comment 2 Quality Engineering 2013-05-19 02:52:35 UTC
Integrated into 'main-golden', will be available in build *201305182300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/19aeb2856de1
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: #229860 - Ctrl-F6 (Test File) does not work from the tested classes for TestNG tests in NB module projects