[ https://issues.apache.org/jira/browse/NETBEANS-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603369#comment-16603369 ]
Javier A. Ortiz edited comment on NETBEANS-1029 at 10/16/19 6:31 PM: --------------------------------------------------------------------- TestNG on my case but I wouldn't be surprised it's on others. was (Author: javydreamercsw): Testing on my case but I wouldn't be surprised it's on others. > Run focused Test Method from extended class > ------------------------------------------- > > Key: NETBEANS-1029 > URL: https://issues.apache.org/jira/browse/NETBEANS-1029 > Project: NetBeans > Issue Type: Improvement > Components: cnd - UnitTest Support > Affects Versions: 8.2, 9.0 > Reporter: Javier A. Ortiz > Priority: Major > > If having a test class that extends another one containing common test > methods there's no way to run a focused method of the tests on the extended > class. > For example: > {code:java} > public abstract class BaseTestCase{ > public void test1(){ > ... > } > } > {code} > {code:java} > public class MainTestCase{ > public void test2(){ > ... > } > } > {code} > There's no way to run test1 focused method. You can only do that in the > abstract class which would fail since is abstract. > To work around that I have to do the following: > * Run focused method from abstract class. > * Stop the execution or wait for it to fail. > * Click Re-run with different parameters. > * Change the class the test is ran from i.e. BaseTestCase#test1 to > MainTestCase#test1 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists