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

Kenneth Fogel updated NETBEANS-4120:
------------------------------------
    Description: 
In nbaction.xml the entry:

<action>
     <actionName>run</actionName>
     <packagings>
         <packaging>jar</packaging>
     </packagings>
     <goals>
         <goal>clean</goal>
         <goal>javafx:run</goal>
     </goals>
 </action>

should be

<action>
     <actionName>run</actionName>
     <packagings>
         <packaging>jar</packaging>
     </packagings>
     <goals>
         <goal>clean</goal>

        <goal>test</goal> <!-- MISSING -->

        <goal>javafx:run</goal>
     </goals>
 </action>

All goals between clean and javafx:run should be executed. For unknown reasons 
javafx:run excludes testing. This was discovered when the goals in a Maven pom 
of clean javafx:run would not run tests. Add test to the pom or the 
nbactions.xml resolved this. If the project does not have any test classes then 
there is no issue and the FX app starts up normally.

There is a side effect. A project that does not yet have a main method ends the 
build without running the tests. There needs to be a dummy class with a main in 
it.

  was:
In nbaction.xml the entry:

<action>
    <actionName>run</actionName>
    <packagings>
        <packaging>jar</packaging>
    </packagings>
    <goals>
        <goal>clean</goal>
        <goal>javafx:run</goal>
    </goals>
 </action>

should be

<action>
    <actionName>run</actionName>
    <packagings>
        <packaging>jar</packaging>
    </packagings>
    <goals>
        <goal>clean</goal>

        <goal>test</goal> <!-- MISSING -->

        <goal>javafx:run</goal>
    </goals>
 </action>

All goals between clean and javafx:run should be executed. For unknown reasons 
javafx:run excludes testing. This was discovered when the goals in a Maven pom 
of clean javafx:run would not run tests. Add test to the pom or the 
nbactions.xml resolved this. If the project does not have any test classes then 
there is no issue and the FX app starts up normally.


> nbactions.xml use of clean and javafx:run goals blocks unit tests
> -----------------------------------------------------------------
>
>                 Key: NETBEANS-4120
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4120
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0
>         Environment: Win 10, Java 14, NB 12.0 Beta 2, OpenFX 15-ea+2
>            Reporter: Kenneth Fogel
>            Priority: Major
>             Fix For: 12.0
>
>
> In nbaction.xml the entry:
> <action>
>      <actionName>run</actionName>
>      <packagings>
>          <packaging>jar</packaging>
>      </packagings>
>      <goals>
>          <goal>clean</goal>
>          <goal>javafx:run</goal>
>      </goals>
>  </action>
> should be
> <action>
>      <actionName>run</actionName>
>      <packagings>
>          <packaging>jar</packaging>
>      </packagings>
>      <goals>
>          <goal>clean</goal>
>         <goal>test</goal> <!-- MISSING -->
>         <goal>javafx:run</goal>
>      </goals>
>  </action>
> All goals between clean and javafx:run should be executed. For unknown 
> reasons javafx:run excludes testing. This was discovered when the goals in a 
> Maven pom of clean javafx:run would not run tests. Add test to the pom or the 
> nbactions.xml resolved this. If the project does not have any test classes 
> then there is no issue and the FX app starts up normally.
> There is a side effect. A project that does not yet have a main method ends 
> the build without running the tests. There needs to be a dummy class with a 
> main in it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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