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 173523 - Execute Single Unit Test Method
Summary: Execute Single Unit Test Method
Status: RESOLVED DUPLICATE of bug 212829
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 19:27 UTC by phidias51
Modified: 2013-04-19 09:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot of contextual menu (373.39 KB, text/plain)
2009-10-01 21:39 UTC, phidias51
Details
JUnit - Run Again action for a FAILED method (85.62 KB, image/png)
2009-10-02 01:47 UTC, Victor Vasilyev
Details
Screenshot of contextual menu (373.39 KB, image/png)
2009-10-02 05:28 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phidias51 2009-10-01 19:27:30 UTC
I often need to run a single unit test method until it works correctly.  In Eclipse you simply right click on the unit
test method and select "Run Method".  I would like the same functionality in NetBeans.
Comment 1 Victor Vasilyev 2009-10-01 20:10:25 UTC
Please, use the context menu item "Run Again" against a desired  method in the tree of the "Test Results" window.
Comment 2 phidias51 2009-10-01 21:39:25 UTC
Created attachment 88699 [details]
Screenshot of contextual menu
Comment 3 phidias51 2009-10-01 21:41:31 UTC
This menu item you referred to doesn't seem to exist (see attached screenshot).
Comment 4 Victor Vasilyev 2009-10-02 01:36:57 UTC
Hmm... Do you really use NB5.0? If so then try to update it up to latest version. Seems it was implemented in 6.7.1, I
can't try it now.
But, I see it in 6.8M1

Unfortunately, I can't see the picture. You need assign correct MIME type when a png file is attached, otherwise, by
default, it will be interpreted as a plain/text file that we can see now.

Comment 5 Victor Vasilyev 2009-10-02 01:47:12 UTC
Created attachment 88704 [details]
JUnit - Run Again action for a FAILED method
Comment 6 Victor Vasilyev 2009-10-02 01:52:52 UTC
I'll close this issue, because it is already implemented. And, I've used it every day at least the last week.
Comment 7 Marian Petras 2009-10-02 05:25:26 UTC
If I remember correctly, the presence/absence of the action depends on whether the action is actually implemented in the
corresponding project (type). So the action may be present and work for J2SE projects and NetBeans module projects but
may not work for other project types. I do not know which project types have the support (for the action) implemented
and which project types do not.
Comment 8 Marian Petras 2009-10-02 05:28:28 UTC
Created attachment 88705 [details]
Screenshot of contextual menu
Comment 9 Marian Petras 2009-10-02 05:32:35 UTC
I have attached the screenshot with the correct MIME-type.

I also fixed the version number. From the screenshot, it is apparent that it is a development build of NetBeans 6.8
(build number 200908022240).
Comment 10 phidias51 2009-10-02 17:48:40 UTC
Your earlier comment about the menu being project dependent makes sense.  I tested this on both Groovy and Grails
projects and encountered the same problem.  I'm shifting the component for this issue to "groovy".
Comment 11 Martin Janicek 2013-04-19 09:35:48 UTC

*** This bug has been marked as a duplicate of bug 212829 ***