You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Meghna Jayan (Jira)" <ji...@apache.org> on 2022/10/07 07:08:00 UTC

[jira] [Commented] (NETBEANS-3720) Run focused test method and Debug focused test method disabled in certain circumstances

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

Meghna Jayan commented on NETBEANS-3720:
----------------------------------------

Not a bug, expected behaviour as per the below code :

The "Run focused method" is enabled if the below code  return true. If the source folder is deleted, sourceRoots.length not greater than 0, and it returns false.

!image-2022-10-07-11-12-07-642.png|width=519,height=81!

in TestSingleMethodSupport.java (isTestClass())

> Run focused test method and Debug focused test method disabled in certain circumstances
> ---------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-3720
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3720
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.2
>         Environment: Kubuntu linux 19.10 64bit with java 8 64bit latest version
>            Reporter: Andrea Paternesi
>            Assignee: Meghna Jayan
>            Priority: Major
>         Attachments: image-2022-10-07-11-12-07-642.png
>
>
> If you have a gradle project where the "main" source directory is not present but there is only the "test" source directory then you cannot launch a test using *Run focused test method* and *Debug focused test method* because Netbeans simply disables them.
> If you create the "main/java"  directories with a simple readme file inside then Netbeans enables again these two options.
> This is a bug to me. You can have a project with no main sources but test sources.
> The example is to have a battery of end-to-end tests that simply calls rest API.
> Can you please fix it?
> Thanks
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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