You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Javier A. Ortiz (JIRA)" <ji...@apache.org> on 2018/07/06 19:14:00 UTC
[jira] [Created] (NETBEANS-1029) Run focused Test Method from
extended class
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists