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 228735 - Can not run single unit test; need to be able to run single unit test for real testing
Summary: Can not run single unit test; need to be able to run single unit test for rea...
Status: RESOLVED DUPLICATE of bug 212829
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC All
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 00:34 UTC by _ wadechandler
Modified: 2013-04-19 09:35 UTC (History)
0 users

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 _ wadechandler 2013-04-19 00:34:32 UTC
There is another issue 173523 for this, but references NB 5.0, and confuses the issue a bit. I want it to be understood this is happening in NB 7.3.1, is problematic, and why.

Simple to reproduce. In a Maven Java project, create a folder
src/test/groovy/org/netbeans/tests

Then create a test
MyTest

Then add methods

@Test
public void testA(){

}

and

@Test
public void testB(){

}

Place the cursor in either method, and bring up the context menu in the editor. There are only options to test the file, but nothing to be able to run the single test like the Java editor. This makes it difficult to work on a single unit test at a time as some other tests in a file can take a while to run.

I'm torn between calling this a defect, but in the other IDEs this is simple to do as well as it is very simple to do in the NB Java editor, so symmetry/uniformity of a JVM language is lost, and also, in pondering whether it is a P2 or a P3 landed on P2 because it is a huge time drain, and there is no way to work around it less using another IDE at the same time or the command line to run unit tests which defeats the purpose of the IDE IMO.
Comment 1 Martin Janicek 2013-04-19 09:35:54 UTC

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