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

Denys Galyuk edited comment on SUREFIRE-1757 at 3/5/20, 1:17 PM:
-----------------------------------------------------------------

Hello again, [~tibordigana]. 
Thank you for your answer and ability to use 3.0.0-SNAPSHOT from the Apache 
Development Snapshot Repository.
But, in the end, this version of the surefire plugin also {color:#DE350B}does 
not see the JUnit5 test suites{color}. :( It can run only methods that has 
annotation @Test.
My JDK and mvn versions:
{code} mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Program Files\Maven\apache-maven-3.6.3
Java version: 12.0.2, vendor: Oracle Corporation, runtime: C:\Program 
Files\Java\jdk-12.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
{code}

1. I've created fresh new project with the 3.0.0-SNAPSHOT to avoid any cached 
problems,  conflicts, etc. 
And included <pluginRepositories> to use 3.0.0-SNAPSHOT
{code}<?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.example</groupId>
    <artifactId>surefire</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <!-- 
https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>5.6.0</version>
            <scope>test</scope>
        </dependency>
        <!-- 
https://mvnrepository.com/artifact/org.junit.platform/junit-platform-runner -->
        <dependency>
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-runner</artifactId>
            <version>1.6.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>


    <build>
        <plugins>
            <!-- 
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
 -->
            <plugin>
                <!-- 
https://stackoverflow.com/questions/49398894/unable-to-compile-simple-java-10-java-11-project-with-maven
 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <!-- 
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin
 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-SNAPSHOT</version>
                <!--                <version>2.21.0</version>-->
            </plugin>
        </plugins>
    </build>

    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <name>Apache Development Snapshot Repository</name>
            
<url>https://repository.apache.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
</project>{code}

2. *Then I did smoke test to check if surefire plugin works:*
<artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-SNAPSHOT</version>
Run Type: *mvn test* (maven searches for tests for himself)
{color:#00875A}*BUILD SUCCESS Tests run: 3, Failures: 0, Errors: 0, Skipped: 
0*{color}
And it worked fine
{code}$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-metadata.xml
 (1.0 kB at 650 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.pom
 (8.1 kB at 8.0 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/maven-metadata.xml
 (827 B at 813 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/surefire-3.0.0-20200305.030602-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/surefire-3.0.0-20200305.030602-252.pom
 (27 kB at 24 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.jar
 (42 kB at 37 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @ surefire 
---
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-metadata.xml
 (802 B at 802 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.pom
 (12 kB at 12 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (793 B at 787 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.pom
 (3.2 kB at 3.2 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (800 B at 794 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.pom
 (3.6 kB at 3.6 kB/s)
Downloading from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.pom
Downloaded from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.pom
 (3.9 kB at 14 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (804 B at 795 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.pom
 (4.5 kB at 4.5 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/maven-metadata.xml
 (796 B at 800 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.pom
 (3.9 kB at 4.0 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.jar
 (14 kB at 13 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.jar
 (23 kB at 20 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.jar
 (76 kB at 60 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.jar
 (146 kB at 105 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.jar
 (286 kB at 191 kB/s)
Downloading from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.jar
Downloaded from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.jar
 (1.9 MB at 1.3 MB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/maven-metadata.xml
 (804 B at 792 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.jar
 (23 kB at 21 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.pom
 (6.7 kB at 6.8 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/maven-metadata.xml
 (837 B at 836 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/surefire-providers-3.0.0-20200305.030638-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/surefire-providers-3.0.0-20200305.030638-252.pom
 (2.5 kB at 2.6 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/maven-metadata.xml
 (793 B at 790 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.pom
 (2.6 kB at 2.6 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.jar
 (16 kB at 14 kB/s)
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running tests.tests.SmokeAndUatClassTagsTest
SmokeAndUatClassTagsTest(SMOKE and UAT classname tags):smokeAndUatClassTagsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 s 
- in tests.tests.SmokeAndUatClassTagsTest
[INFO] Running tests.tests.SmokeAndUatSeparateMethodsTagsTest
SmokeAndUatSeparateMethodsTagsTest(UAT method tag):uatMethodTagTest
SmokeAndUatSeparateMethodsTagsTest(SMOKE method tag):smokeMethodTagTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s 
- in tests.tests.SmokeAndUatSeparateMethodsTagsTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.656 s
[INFO] Finished at: 2020-03-05T11:06:18+02:00
[INFO] 
------------------------------------------------------------------------{code}

3. *Then I tried to say to the maven to run the JUNit5 suite:*
<artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-SNAPSHOT</version>
Run Type: *mvn test Dtest=SmokeSuiteTest* (maven is said to run specific Class 
(JUnit5 suite))
{color:#DE350B}*BUILD FAILURE Tests run: 0, Failures: 0, Errors: 0, Skipped: 0. 
No tests were executed!*{color}

{code}mvn clean test -Dtest=SmokeSuiteTest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO] Deleting C:\Users\galyuk\IdeaProjects\surefire\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @ surefire 
---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.471 s
[INFO] Finished at: 2020-03-05T14:59:50+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-SNAPSHOT:test 
(default-test) on project surefire: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException{code}

4. *It failed cause maven version 3.0.0-SNAPSHOT does not see JUnit5 Suite 
Class. So I updated the pom to use older version. The last working one:*
<artifactId>maven-surefire-plugin</artifactId> <version>2.21.0</version>
Run Type: *mvn test Dtest=SmokeSuiteTest* (maven is said to run specific Class 
(JUnit5 suite))
{color:#00875A}*BUILD SUCCESS Tests run: 2, Failures: 0, Errors: 0, Skipped: 
0*{color}
{code}$ mvn clean test -Dtest=SmokeSuiteTest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO] Deleting C:\Users\galyuk\IdeaProjects\surefire\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ surefire ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running tests.junit_suites.SmokeSuiteTest
SmokeAndUatSeparateMethodsTagsTest(SMOKE method tag):smokeMethodTagTest
SmokeAndUatClassTagsTest(SMOKE and UAT classname tags):smokeAndUatClassTagsTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.535 s 
- in tests.junit_suites.SmokeSuiteTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.626 s
[INFO] Finished at: 2020-03-05T15:02:16+02:00
[INFO] 
------------------------------------------------------------------------{code}

So... how did you manage to run on your version 3.0.0-SNAPSHOT the JUnit5 
suites? 
Did you use the next commands for the maven to run suite? *mvn test 
Dtest=SmokeSuiteTest*


was (Author: denysgalyuk):
Hello again, [~tibordigana]. 
Thank you for your answer and ability to use 3.0.0-SNAPSHOT from the Apache 
Development Snapshot Repository.
But, in the end, this version of the surefire plugin also {color:#DE350B}does 
not see the JUnit5 test suites{color}. :( It can run only methods that has 
annotation @Test.
My JDK and mvn versions:
{code} mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Program Files\Maven\apache-maven-3.6.3
Java version: 12.0.2, vendor: Oracle Corporation, runtime: C:\Program 
Files\Java\jdk-12.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
{code}

1. I've created fresh new project with the 3.0.0-SNAPSHOT to avoid any cached 
problems,  conflicts, etc. 
And included <pluginRepositories> to use 3.0.0-SNAPSHOT
{code}<?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.example</groupId>
    <artifactId>surefire</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <!-- 
https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>5.6.0</version>
            <scope>test</scope>
        </dependency>
        <!-- 
https://mvnrepository.com/artifact/org.junit.platform/junit-platform-runner -->
        <dependency>
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-runner</artifactId>
            <version>1.6.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>


    <build>
        <plugins>
            <!-- 
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
 -->
            <plugin>
                <!-- 
https://stackoverflow.com/questions/49398894/unable-to-compile-simple-java-10-java-11-project-with-maven
 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <!-- 
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin
 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-SNAPSHOT</version>
                <!--                <version>2.21.0</version>-->
            </plugin>
        </plugins>
    </build>

    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <name>Apache Development Snapshot Repository</name>
            
<url>https://repository.apache.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
</project>{code}

2. *Then I did smoke test to check if surefire plugin works:*
<artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-SNAPSHOT</version>
Run Type: *mvn test* (maven searches for tests for himself)
{color:#00875A}BUILD SUCCESS Tests run: 3, Failures: 0, Errors: 0, Skipped: 
0{color}
And it worked fine
{code}$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-metadata.xml
 (1.0 kB at 650 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.pom
 (8.1 kB at 8.0 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/maven-metadata.xml
 (827 B at 813 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/surefire-3.0.0-20200305.030602-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire/3.0.0-SNAPSHOT/surefire-3.0.0-20200305.030602-252.pom
 (27 kB at 24 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-surefire-plugin/3.0.0-SNAPSHOT/maven-surefire-plugin-3.0.0-20200305.030801-252.jar
 (42 kB at 37 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @ surefire 
---
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-metadata.xml
 (802 B at 802 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.pom
 (12 kB at 12 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (793 B at 787 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.pom
 (3.2 kB at 3.2 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (800 B at 794 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.pom
 (3.6 kB at 3.6 kB/s)
Downloading from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.pom
Downloaded from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.pom
 (3.9 kB at 14 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/maven-metadata.xml
 (804 B at 795 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.pom
 (4.5 kB at 4.5 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/maven-metadata.xml
 (796 B at 800 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.pom
 (3.9 kB at 4.0 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.jar
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-logger-api/3.0.0-SNAPSHOT/surefire-logger-api-3.0.0-20200305.030609-252.jar
 (14 kB at 13 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-extensions-api/3.0.0-SNAPSHOT/surefire-extensions-api-3.0.0-20200305.030621-250.jar
 (23 kB at 20 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-booter/3.0.0-SNAPSHOT/surefire-booter-3.0.0-20200305.030627-252.jar
 (76 kB at 60 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-api/3.0.0-SNAPSHOT/surefire-api-3.0.0-20200305.030615-252.jar
 (146 kB at 105 kB/s)
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/maven-surefire-common/3.0.0-SNAPSHOT/maven-surefire-common-3.0.0-20200305.030720-252.jar
 (286 kB at 191 kB/s)
Downloading from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.jar
Downloaded from central: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.jar
 (1.9 MB at 1.3 MB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/maven-metadata.xml
 (804 B at 792 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.jar
 (23 kB at 21 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-junit-platform/3.0.0-SNAPSHOT/surefire-junit-platform-3.0.0-20200305.030732-252.pom
 (6.7 kB at 6.8 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/maven-metadata.xml
 (837 B at 836 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/surefire-providers-3.0.0-20200305.030638-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/surefire-providers/3.0.0-SNAPSHOT/surefire-providers-3.0.0-20200305.030638-252.pom
 (2.5 kB at 2.6 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/maven-metadata.xml
 (793 B at 790 B/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.pom
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.pom
 (2.6 kB at 2.6 kB/s)
Downloading from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.jar
Downloaded from apache.snapshots: 
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/surefire/common-java5/3.0.0-SNAPSHOT/common-java5-3.0.0-20200305.030651-252.jar
 (16 kB at 14 kB/s)
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running tests.tests.SmokeAndUatClassTagsTest
SmokeAndUatClassTagsTest(SMOKE and UAT classname tags):smokeAndUatClassTagsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 s 
- in tests.tests.SmokeAndUatClassTagsTest
[INFO] Running tests.tests.SmokeAndUatSeparateMethodsTagsTest
SmokeAndUatSeparateMethodsTagsTest(UAT method tag):uatMethodTagTest
SmokeAndUatSeparateMethodsTagsTest(SMOKE method tag):smokeMethodTagTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s 
- in tests.tests.SmokeAndUatSeparateMethodsTagsTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.656 s
[INFO] Finished at: 2020-03-05T11:06:18+02:00
[INFO] 
------------------------------------------------------------------------{code}

3. *Then I tried to say to the maven to run the JUNit5 suite:*
<artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-SNAPSHOT</version>
Run Type: *mvn test Dtest=SmokeSuiteTest* (maven is said to run specific Class 
(JUnit5 suite))
{color:#DE350B}BUILD FAILURE Tests run: 0, Failures: 0, Errors: 0, Skipped: 0. 
No tests were executed!{color}

{code}mvn clean test -Dtest=SmokeSuiteTest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO] Deleting C:\Users\galyuk\IdeaProjects\surefire\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @ surefire 
---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.471 s
[INFO] Finished at: 2020-03-05T14:59:50+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-SNAPSHOT:test 
(default-test) on project surefire: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException{code}

4. *It failed cause maven version 3.0.0-SNAPSHOT does not see JUnit5 Suite 
Class. So I updated the pom to use older version. The last working one:*
<artifactId>maven-surefire-plugin</artifactId> <version>2.21.0</version>
Run Type: mvn test Dtest=SmokeSuiteTest (maven is said to run specific Class 
(JUnit5 suite))
BUILD SUCCESS Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
{code}$ mvn clean test -Dtest=SmokeSuiteTest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.example:surefire >------------------------
[INFO] Building surefire 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ surefire ---
[INFO] Deleting C:\Users\galyuk\IdeaProjects\surefire\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ surefire 
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ surefire ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
surefire ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
C:\Users\galyuk\IdeaProjects\surefire\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
surefire ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\galyuk\IdeaProjects\surefire\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ surefire ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running tests.junit_suites.SmokeSuiteTest
SmokeAndUatSeparateMethodsTagsTest(SMOKE method tag):smokeMethodTagTest
SmokeAndUatClassTagsTest(SMOKE and UAT classname tags):smokeAndUatClassTagsTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.535 s 
- in tests.junit_suites.SmokeSuiteTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.626 s
[INFO] Finished at: 2020-03-05T15:02:16+02:00
[INFO] 
------------------------------------------------------------------------{code}

So... how did you manage to run on your version 3.0.0-SNAPSHOT the JUnit5 
suites? 
Did you use the next commands for the maven to run suite? *mvn test 
Dtest=SmokeSuiteTest*

> maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test 
> Suites junit-platform-runner
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1757
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1757
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support, Maven Surefire Plugin
>    Affects Versions: 2.22.0, 2.22.1, 2.22.2, 3.0.0-M2, 3.0.0-M1, 3.0.0-M3, 
> 3.0.0-M4
>            Reporter: Denys Galyuk
>            Assignee: Tibor Digana
>            Priority: Major
>         Attachments: Build_Failure.png, Build_Success.png, tag.7z
>
>
> h1. {color:#00875A}plugin works with version 2.19.1 (or 2.20, or 
> 2.21.0){color}
> I've attached the project archive to the bug report.
> h2. *Preconditions:*
> h3. pom.xml
> # *{color:#00875A}maven-surefire-plugin 2.19.1{color}* (or 2.20, or 2.21.0)
> # maven-compiler-plugin 3.8.1
> # junit-platform-runner 1.6.0
> # junit-jupiter-engine 5.6.0
> {code:xml}<?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>tag</groupId>
>    <artifactId>tag</artifactId>
>    <version>1.0-SNAPSHOT</version>
>    <dependencies>
>        <!-- 
> https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
>        <dependency>
>            <groupId>org.junit.jupiter</groupId>
>            <artifactId>junit-jupiter-engine</artifactId>
>            <version>5.6.0</version>
>            <scope>test</scope>
>        </dependency>
>        <!-- 
> https://mvnrepository.com/artifact/org.junit.platform/junit-platform-runner 
> -->
>        <dependency>
>            <groupId>org.junit.platform</groupId>
>            <artifactId>junit-platform-runner</artifactId>
>            <version>1.6.0</version>
>            <scope>test</scope>
>        </dependency>
>    </dependencies>
>    <build>
>        <plugins>
>            <!-- 
> https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
>  -->
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-compiler-plugin</artifactId>
>                <version>3.8.1</version>
>                <configuration>
>                    <source>1.8</source>
>                    <target>1.8</target>
>                    <encoding>UTF-8</encoding>
>                </configuration>
>            </plugin>
>            <!-- 
> https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin
>  -->
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-surefire-plugin</artifactId>
> <!-- ALL PLUGIN VERSIONS BELOW DO NOT SEE THE JUNIT TEST SUITE AND AS A 
> RESULT MAVEN FAILS THE BUILD WITH THE ERROR:
>     No tests were executed! -->
> <!--                <version>2.22.2</version>-->
> <!--                <version>2.22.1</version>-->
> <!--                <version>2.22.0</version>-->
> <!--                <version>2.20.1</version>-->
> <!--                <version>3.0.0-M4</version>-->
> <!--                <version>3.0.0-M3</version>-->
> <!--                <version>3.0.0-M2</version>-->
> <!--                <version>3.0.0-M1</version>-->
> <!--                WORKING VERSIONS OF THE PLUGIN: JUnit5 Suites (based on 
> tags) + Maven -->
>                <version>2.21.0</version>
> <!--                <version>2.20</version>-->
> <!--                <version>2.19.1</version>-->
>            </plugin>
>        </plugins>
>    </build>
> </project>
> {code}
> h3. Test class base on JUnit5: @Test,@Tag,@Tags
> {code:java}package tests.testsuites.suite1;
> import org.junit.jupiter.api.Tag;
> import org.junit.jupiter.api.Tags;
> import org.junit.jupiter.api.Test;
> import static org.junit.jupiter.api.Assertions.assertTrue;
> public class Suite2TestNameTagsTests {
>    @Test
>    @Tag("UAT")
>    void suite2_1Test() {
>        System.out.println("Suite2TestNameTagsTests:suite2_1Test(UAT tag)");
>        assertTrue(true);
>    }
>    @Test
>    @Tag("SMOKE")
>    void suite2_2Test() {
>        System.out.println("Suite2TestNameTagsTests:suite2_2Test(SMOKE tag)");
>        assertTrue(true);
>    }
>    @Test
>    @Tags({@Tag("SMOKE"), @Tag("UAT")})
>    void suite2_3Test() {
>        System.out.println("Suite2TestNameTagsTests:suite2_3Test(SMOKE and UAT 
> tags)");
>        assertTrue(true);
>    }
> }{code}
> h3. JUnit5 Test Suite based on: @RunWith, @SelectPackages, @IncludeTags
> {code:java}package tests.suites;
> import org.junit.platform.runner.JUnitPlatform;
> import org.junit.platform.suite.api.IncludeTags;
> import org.junit.platform.suite.api.SelectPackages;
> import org.junit.runner.RunWith;
> @RunWith(JUnitPlatform.class)
> @SelectPackages("tests")
> @IncludeTags({"SMOKE","UAT"})
> public class SmokeAndUatSuiteTest {
> }{code}
> h3. Steps to reproduce: (Run the created test suite with maven)
> # Open terminal or GitBASH in the project folder
> # Run the command mvn clean test -Dtest=TestSuite
> h4. Actual Result: (something like this)
> {color:#00875A}*BUILD SUCCESS*
> *Tests run: 6, Failures: 0, Errors: 0, Skipped: 0*{color}
> {code}$ mvn clean test -Dtest=SmokeAndUatSuiteTest
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------< tag:tag 
> >-------------------------------
> [INFO] Building tag 1.0-SNAPSHOT
> [INFO] --------------------------------[ jar 
> ]---------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tag ---
> [INFO] Deleting C:\Users\galyuk\IdeaProjects\tag\target
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tag ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ tag ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
> tag ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory 
> C:\Users\galyuk\IdeaProjects\tag\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
> tag ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 11 source files to 
> C:\Users\galyuk\IdeaProjects\tag\target\test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ tag ---
> [INFO]
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running tests.suites.SmokeAndUatSuiteTest
> Suite2TestNameTagsTests:suite2_1Test(UAT tag)
> Suite2TestNameTagsTests:suite2_2Test(SMOKE tag)
> Suite2TestNameTagsTests:suite2_3Test(SMOKE and UAT tags)
> Suite3ClassNameTagsTests(SMOKE and UAT tags):suite3_1Test
> Suite4TestNameTagsTests(SMOKE tag):suite4_1Test
> Suite1ClassNameTagsTests(UAT tag):suite1_1Test
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.595 
> s - in tests.suites.SmokeAndUatSuiteTest
> [INFO]
> [INFO] Results:
> [INFO]
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  5.915 s
> [INFO] Finished at: 2020-02-28T16:17:00+02:00
> [INFO] 
> ------------------------------------------------------------------------{code}
> !Build_Success.png!
> h1. {color:#DE350B}*plugin does not work with versions 2.22.0 and 
> higher*{color}
> h2. *Preconditions:*
> # Change the version of the maven-surefire-plugin in the pom.xml to any from 
> the list below:
> {code}2.20.1
> 2.22.0
> 2.22.1
> 2.22.2
> 3.0.0-M1
> 3.0.0-M2
> 3.0.0-M3
> 3.0.0-M4{code}
> h3. Steps to reproduce: (Run the created test suite with maven)
> # Open terminal or GitBASH in the project folder
> # Run the command mvn clean test -Dtest=TestSuite
> h4. Actual Result: (something like this)
> {color:#DE350B}*BUILD FAILURE: No tests were executed!*{color}
> {code}$ mvn clean test -Dtest=SmokeAndUatSuiteTest
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------< tag:tag 
> >-------------------------------
> [INFO] Building tag 1.0-SNAPSHOT
> [INFO] --------------------------------[ jar 
> ]---------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tag ---
> [INFO] Deleting C:\Users\galyuk\IdeaProjects\tag\target
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tag ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ tag ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
> tag ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory 
> C:\Users\galyuk\IdeaProjects\tag\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
> tag ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 11 source files to 
> C:\Users\galyuk\IdeaProjects\tag\target\test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ tag ---
> [INFO]
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO]
> [INFO] Results:
> [INFO]
> [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  5.611 s
> [INFO] Finished at: 2020-02-28T16:16:42+02:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on 
> project tag: No tests were executed!  (Set -DfailIfNoTests=false to ignore 
> this error.) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException{code}
> !Build_Failure.png! 
> ----
> Please fix :)



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

Reply via email to