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.
Would be nice to implement Run Focused Test Method/Debug Focused Test Method in the same way as it is for Java files.
Some parts implemented in: http://hg.netbeans.org/web-main/rev/fba6a768ce89 ..but it's not activated yet and still needs some improvements. Focusing to the TM = Next
*** Bug 173523 has been marked as a duplicate of this bug. ***
*** Bug 228735 has been marked as a duplicate of this bug. ***
I'm working on this ATM. I have things working nicely locally, and am building my patch out. I will have it attached directly.
Created attachment 161956 [details] Patch adding run/debug current method for Groovy tests
Currently I'm not making any special checks to see if the file is actually a test file. The popup menu options will work if any method is selected, and then the users build system will tell them no tests were run or there was an error related to what they have done. I think it is pretty obvious. Determining if it is actually a test considering the different types of tests which can be done with Groovy DSL seems quite difficult, so by not making assumptions, and allowing the method name to be derived by the Groovy parser seems the best approach, and usage will be in the users hands. This is WAY better than not having this option at all as I can tell you I will save MUCH time with this feature.
Bruno, I added you to the CC so we could communicate through the issue. I have submitted the patch here. Thanks.
Created attachment 161977 [details] Update to the patch; noticed some oddities between the CLI and the IDE
Created attachment 161990 [details] TestCase project Wade, thank you for contributing this patch. I'm attaching to this issue the small testcase project I've used to test it's functionality. Both the Run and Debug focused operations work fine with your patch. -Bruno
Thank you for the patch Wade, I've applied it on your behalf. http://hg.netbeans.org/core-main/rev/1b3165039703
Integrated into 'main-silver', will be available in build *201609120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1b3165039703 User: Bruno Fl