Pieter van den Hombergh created NETBEANS-1821:
-------------------------------------------------

             Summary: maven template should include surefire plugin to run tetst
                 Key: NETBEANS-1821
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1821
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Maven
    Affects Versions: 10.0
            Reporter: Pieter van den Hombergh


{{when there is no maven sure-fire spec like}}

<plugin>
 <artifactId>maven-surefire-plugin</artifactId>
 <version>2.22.1</version>
 </plugin>

There are no test run. 

To recreate: Create a simple maven java project, add a junit-test with one 
failing test.

Invoke test project from the right-click menu. No test is run.

Adding the sure-fire plugin as above in e.g. 
<build><plugins>...</plugins></build> fixes the issue. This behaviour is 
consistent with the maven behaviour (tested with cli version 5.3.2), so is 
maven, not netbeans specific.



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