I am using Maven 3.3.9 bundled with NetBeans. This version of Maven uses the 2.12.4 version of the surefire plugin. I switched to the latest non-milestone version: <pluginManagement> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> </plugins> </pluginManagement> And now it works. Thanks for the help!
On Wednesday, December 18, 2019, 02:03:14 AM CST, John Mc <mcdonnell.j...@gmail.com> wrote: Hi What version of maven are you running? Include the maven surefire plugin but check the JUnit 5 documentation for what is the minimum version supported. I think off the top of my head it's something like 2.21 but double check on their site. I'd guess that when you include that plugin I to your pom, Maven will start to execute your tests. Regards John On Wed, 18 Dec 2019, 03:19 Michael Remijan, <mjremi...@yahoo.com.invalid> wrote: I've started a brand new Maven project and had NetBeans take care of the POM updates when I added a unit test. NetBean automatically put in the dependencies for JUnit 5. So far so good. But I can't seem to get the test to run. NetBeans is always saying: "No tests executed". Below are the details...can't get much more simple I think. C O M M A N D L I N EHere is the command line to run the tests (Alt + F6): cd D:\Projects\thoth-email; JAVA_HOME=D:\\Applications\\java\\zulu11.35.15-ca-jdk11.0.5-win_x64 cmd /c "\"\"D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven-nblib\\netbeans-eventspy.jar -Dfile.encoding=UTF-8 test\"" P O MHere is the POM: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.thoth</groupId> <artifactId>thoth-email</artifactId> <version>1.0.0.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.3.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>5.3.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.3.1</version> <scope>test</scope> </dependency> </dependencies> </project> J U N I T T E S THere is the Unit test... package org.thoth.email.ssl;import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test;public class SSLTest { public SSLTest() { } @BeforeEach public void setUp() { } @Test public void a_test() throws Exception { System.out.printf("Hello test!%n"); Assertions.assertEquals("A", "A"); } } Any thoughts?