You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Alexander Graf (JIRA)" <ji...@apache.org> on 2018/09/03 21:46:00 UTC

[jira] [Commented] (NETBEANS-1029) Run focused Test Method from extended class

    [ https://issues.apache.org/jira/browse/NETBEANS-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602453#comment-16602453 ] 

Alexander Graf commented on NETBEANS-1029:
------------------------------------------

Which test framework are you referring to? JUnit? Since this is obviously Java code, the selected component "cnd" is not correct (cnd is the C/C++ component of Netbeans). I'm unsure which component should be assigned.

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