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 153481 - Despite 6.5 Documentation, It's Impossible To Run/Re-Run Single Test
Summary: Despite 6.5 Documentation, It's Impossible To Run/Re-Run Single Test
Status: RESOLVED DUPLICATE of bug 72080
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-19 19:01 UTC by tomwheeler
Modified: 2008-11-20 11:51 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 tomwheeler 2008-11-19 19:01:11 UTC
The New and Noteworthy document for 6.5 states that a long-awaited feature of being able to re-run a single failed JUnit
test is finally available:

   http://wiki.netbeans.org/NewAndNoteWorthyNB65#section-NewAndNoteWorthyNB65-RunDebugSingleJUnitTestMethod

However it does not appear to actually be included in the 6.5 final release.  I am therefore marking as P1 in accordance
with bug priority guidelines, since it was an advertised feature and meets the requirement of "Product feature does not
work, no workaround exists".

To reproduce:

1.  Open a NetBeans Platform project which has a module containing unit tests.  This may affect other project types as
well, although I work mainly with platform applications.

2.  Edit one of the JUnit testcases and modify one of its tests so it will fail.

3.  Run the testcase. I did so by right-clicking the node for the testcase in the project view and then choosing "Run
file" from the context menu, but other ways are possible and can likely be used to reproduce the problem.

4.  The JUnit Test Result window shows that the test modified in step 2 fails.

5.  Right click the failed test method.  I expect a context menu with items "Run again" and "Debug" to appear as shown
in the New and Noteworthy document, but there is no context menu whatsoever nor any other obvious way in which to run
the single failed test.


Information about my configuration from the Help->About window:

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\twheeler\.netbeans\6.5
Comment 1 tomwheeler 2008-11-19 19:08:07 UTC
Also, the JavaHelp distributed with NetBeans has a page entitled "Running a JUnit Test" that described how to run a
single test method.  The instructions there do not work either (the right-click it describes does not yield a context
menu).  
Comment 2 tomwheeler 2008-11-19 19:37:14 UTC
Although the New and Noteworthy document shows a screenshot of re-running a failed test, the text in the document
advertises the feature of being able to run a single test (failed or otherwise).

I have changed the summary of this issue to reflect the fact that neither case works in 6.5.
Comment 3 Peter Pis 2008-11-20 11:51:21 UTC

*** This issue has been marked as a duplicate of 72080 ***