[ 
https://issues.apache.org/jira/browse/NETBEANS-2771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Travis updated NETBEANS-2771:
-----------------------------
    Description: 
Our large multi-project has long build times, and thus doesn't want to use 
"-rerun-tasks" when running tests.  It adds too much runtime, which is 
especially noticable while iterating on development of a fast-running test 
class/method.  To solve this, we simply need to customize all of the build 
actions for running tests.  We simply need to replace "-rerun-tasks" with 
"cleanTest".  Making that customization would be totally OK with us... except 
that the customization of the "run.single.method" build action seems broken in 
Netbeans 11.1 beta 2.

When I customize the "run.single.method" action using the project properties 
dialog (to remove "--rerun-tasks"), the customization seems to work while the 
dialog is still open.  After dismissing the dialog with the "OK" button, the 
gradle.properties file contains:

 

action.run.single.method.args=cleanTest test --tests ${selectedMethod}

 

But when I actually execute a test method, this change does not appear to 
apply.  The compile steps are all still rerun, the same as before.

Also, if I re-open the project properties, the dialog doesn't show any 
customization for the "run.single.method" action anymore.

It seems as if the file writing code for customizing this action is working, 
but the in-memory storage and/or file parsing code for the customized action is 
broken.

 

As an aside...

Shouldn't this action be named "test.single.method" instead of 
"run.single.method", to be consistent with the naming of other build actions?  
I found the "run" instead of "test" in the name to be confusing at first.  And 
I'm almost wondering if that's related to the root cause of this bug (I didn't 
have time to review the source code myself to check).

  was:
Our large multi-project has long build times, and thus doesn't want to use 
"--rerun-tasks" when running tests.  It adds too much runtime, which is 
especially noticable while iterating on development of a fast-running test 
class/method.  To solve this, we simply need to customize all of the build 
actions for running tests.  We simply need to replace "--rerun-tasks" with 
"cleanTest".  Making that customization would be totally OK with us... except 
that the customization of the "run.single.method" build action seems broken in 
Netbeans 11.1 beta 2.

When I customize the "run.single.method" action using the project properties 
dialog (to remove "--rerun-tasks"), the customization seems to work while the 
dialog is still open.  After dismissing the dialog with the "OK" button, the 
gradle.properties file contains:

 

action.run.single.method.args=cleanTest test --tests ${selectedMethod}

 

But when I actually execute a test method, this change does not appear to 
apply.  The compile steps are all still rerun, the same as before.

Also, if I re-open the project properties, the dialog doesn't show any 
customization for the "run.single.method" action anymore.

It seems as if the file writing code for customizing this action is working, 
but the in-memory storage and/or file parsing code for the customized action is 
broken.

 

As an aside...

Shouldn't this action be named "test.single.method" instead of 
"run.single.method", to be consistent with the naming of other build actions?  
I found the "run" instead of "test" in the name to be confusing at first.  And 
I'm almost wondering if that's related to the root cause of this bug (I didn't 
have time to review the source code myself to check).


> Gradle Project Properties: Customization for run.single.method seems broken
> ---------------------------------------------------------------------------
>
>                 Key: NETBEANS-2771
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2771
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>         Environment: Netbeans 11.1 beta 2
> Gradle 4.2.1
> JUnit 5.4
> Oracle JDK 8
> Windows 10
>            Reporter: Travis
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>
> Our large multi-project has long build times, and thus doesn't want to use 
> "-rerun-tasks" when running tests.  It adds too much runtime, which is 
> especially noticable while iterating on development of a fast-running test 
> class/method.  To solve this, we simply need to customize all of the build 
> actions for running tests.  We simply need to replace "-rerun-tasks" with 
> "cleanTest".  Making that customization would be totally OK with us... except 
> that the customization of the "run.single.method" build action seems broken 
> in Netbeans 11.1 beta 2.
> When I customize the "run.single.method" action using the project properties 
> dialog (to remove "--rerun-tasks"), the customization seems to work while the 
> dialog is still open.  After dismissing the dialog with the "OK" button, the 
> gradle.properties file contains:
>  
> action.run.single.method.args=cleanTest test --tests ${selectedMethod}
>  
> But when I actually execute a test method, this change does not appear to 
> apply.  The compile steps are all still rerun, the same as before.
> Also, if I re-open the project properties, the dialog doesn't show any 
> customization for the "run.single.method" action anymore.
> It seems as if the file writing code for customizing this action is working, 
> but the in-memory storage and/or file parsing code for the customized action 
> is broken.
>  
> As an aside...
> Shouldn't this action be named "test.single.method" instead of 
> "run.single.method", to be consistent with the naming of other build actions? 
>  I found the "run" instead of "test" in the name to be confusing at first.  
> And I'm almost wondering if that's related to the root cause of this bug (I 
> didn't have time to review the source code myself to check).



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