Javier A. Ortiz created NETBEANS-1029:
-----------------------------------------

             Summary: 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


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
(v7.6.3#76005)

---------------------------------------------------------------------
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

Reply via email to