[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-06-05 Thread Tibor Digana (Jira)


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

Tibor Digana updated SUREFIRE-1757:
---
Fix Version/s: (was: 3.0.0-M6)

> 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}
> 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;>
>4.0.0
>tag
>tag
>1.0-SNAPSHOT
>
>
>
>org.junit.jupiter
>junit-jupiter-engine
>5.6.0
>test
>
>
>
>org.junit.platform
>junit-platform-runner
>1.6.0
>test
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>3.8.1
>
>1.8
>1.8
>UTF-8
>
>
>
>
>org.apache.maven.plugins
>maven-surefire-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>2.21.0
> 
> 
>
>
>
> 
> {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] 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-06-05 Thread Tibor Digana (Jira)


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

Tibor Digana updated SUREFIRE-1757:
---
Fix Version/s: (was: 3.0.0-M5)
   3.0.0-M6

> 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
> Fix For: 3.0.0-M6
>
> 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}
> 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;>
>4.0.0
>tag
>tag
>1.0-SNAPSHOT
>
>
>
>org.junit.jupiter
>junit-jupiter-engine
>5.6.0
>test
>
>
>
>org.junit.platform
>junit-platform-runner
>1.6.0
>test
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>3.8.1
>
>1.8
>1.8
>UTF-8
>
>
>
>
>org.apache.maven.plugins
>maven-surefire-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>2.21.0
> 
> 
>
>
>
> 
> {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 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-03-24 Thread Tibor Digana (Jira)


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

Tibor Digana updated SUREFIRE-1757:
---
Fix Version/s: 3.0.0-M5

> 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
> Fix For: 3.0.0-M5
>
> 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}
> 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;>
>4.0.0
>tag
>tag
>1.0-SNAPSHOT
>
>
>
>org.junit.jupiter
>junit-jupiter-engine
>5.6.0
>test
>
>
>
>org.junit.platform
>junit-platform-runner
>1.6.0
>test
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>3.8.1
>
>1.8
>1.8
>UTF-8
>
>
>
>
>org.apache.maven.plugins
>maven-surefire-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>2.21.0
> 
> 
>
>
>
> 
> {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 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-02-28 Thread Denys Galyuk (Jira)


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

Denys Galyuk updated SUREFIRE-1757:
---
Description: 
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}
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;>
   4.0.0

   tag
   tag
   1.0-SNAPSHOT

   
   
   
   org.junit.jupiter
   junit-jupiter-engine
   5.6.0
   test
   
   
   
   org.junit.platform
   junit-platform-runner
   1.6.0
   test
   
   


   
   
   
   
   org.apache.maven.plugins
   maven-compiler-plugin
   3.8.1
   
   1.8
   1.8
   UTF-8
   
   
   
   
   org.apache.maven.plugins
   maven-surefire-plugin











   2.21.0


   
   
   

{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 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-02-28 Thread Denys Galyuk (Jira)


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

Denys Galyuk updated SUREFIRE-1757:
---
Description: 
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}
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;>
   4.0.0

   tag
   tag
   1.0-SNAPSHOT

   
   
   
   org.junit.jupiter
   junit-jupiter-engine
   5.6.0
   test
   
   
   
   org.junit.platform
   junit-platform-runner
   1.6.0
   test
   
   


   
   
   
   
   org.apache.maven.plugins
   maven-compiler-plugin
   3.8.1
   
   1.8
   1.8
   UTF-8
   
   
   
   
   org.apache.maven.plugins
   maven-surefire-plugin











   2.21.0


   
   
   

{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 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner

2020-02-28 Thread Denys Galyuk (Jira)


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

Denys Galyuk updated SUREFIRE-1757:
---
Summary: maven-surefire-plugin versions starting from 2.22.0 do not run 
JUnit5 Test Suites junit-platform-runner  (was: maven-surefire-plugin versions 
starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner based 
on @Tags)

> 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
>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}
> 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;>
>4.0.0
>tag
>tag
>1.0-SNAPSHOT
>
>
>
>org.junit.jupiter
>junit-jupiter-engine
>5.6.0
>test
>
>
>
>org.junit.platform
>junit-platform-runner
>1.6.0
>test
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>3.8.1
>
>1.8
>1.8
>UTF-8
>
>
>
>
>org.apache.maven.plugins
>maven-surefire-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>2.21.0
> 
> 
>
>
>
> 
> {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] --- 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner based on @Tags

2020-02-28 Thread Denys Galyuk (Jira)


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

Denys Galyuk updated SUREFIRE-1757:
---
Description: 
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}
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;>
   4.0.0

   tag
   tag
   1.0-SNAPSHOT

   
   
   
   org.junit.jupiter
   junit-jupiter-engine
   5.6.0
   test
   
   
   
   org.junit.platform
   junit-platform-runner
   1.6.0
   test
   
   


   
   
   
   
   org.apache.maven.plugins
   maven-compiler-plugin
   3.8.1
   
   1.8
   1.8
   UTF-8
   
   
   
   
   org.apache.maven.plugins
   maven-surefire-plugin











   2.21.0


   
   
   

{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 

[jira] [Updated] (SUREFIRE-1757) maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test Suites junit-platform-runner based on @Tags

2020-02-28 Thread Denys Galyuk (Jira)


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

Denys Galyuk updated SUREFIRE-1757:
---
Attachment: tag.7z

> maven-surefire-plugin versions starting from 2.22.0 do not run JUnit5 Test 
> Suites junit-platform-runner based on @Tags
> --
>
> 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
>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}
> 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}
> 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;>
>4.0.0
>tag
>tag
>1.0-SNAPSHOT
>
>
>
>org.junit.jupiter
>junit-jupiter-engine
>5.6.0
>test
>
>
>
>org.junit.platform
>junit-platform-runner
>1.6.0
>test
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>3.8.1
>
>1.8
>1.8
>UTF-8
>
>
>
>
>org.apache.maven.plugins
>maven-surefire-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>2.21.0
> 
> 
>
>
>
> 
> {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 
>