[jboss-jira] [JBoss JIRA] (WFLY-13629) WildFly kitchensink quickstart doesn't run test when started by Maven

Norbert Kawiński (Jira) issues at jboss.org
Tue Jun 30 16:27:26 EDT 2020


     [ https://issues.redhat.com/browse/WFLY-13629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Kawiński updated WFLY-13629:
------------------------------------
    Description: 
Problem:

When running kitchensink's tests from Maven, the script finishes with "BUILD SUCCESS" but no tests are run.

 

Cause:

{color:#172b4d}"MemberRegistrationIT" class is not used by the {color}"Maven Surefire Plugin" which is responsible for running tests.

Quoting its documentation: [https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html]

??{color:#505f79}_The Maven Surefire Plugin will scan for test classes whose fully qualified names match the following patterns._{color}??
 * ??{color:#505f79}_{{**/Test*.java}}_{color}??
 * ??{color:#505f79}_{{**/*Test.java}}_{color}??
 * ??{color:#505f79}_{{**/*Tests.java}}_{color}??
 * ??{color:#505f79}{{_**/*TestCase.java_}}{color}??

{color:#172b4d}This plugin runs only classes with very specific naming convention. The "MemberRegistrationIT" class doesn't fit into this convention.{color}

 

{color:#172b4d}Solution:{color}

{color:#172b4d}Rename the "MemberRegistrationIT" class to something like "MemberRegistrationIntegrationTest".{color}

  was:
Problem:

When running kitchensink's tests from Maven, the script finishes with "BUILD SUCCESS" but no tests are run.

 

Cause:

{color:#172b4d}"MemberRegistrationIT" class is not used by the {color}"Maven Surefire Plugin" which is responsible for running tests.

Quoting its documentation: [https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html]

{color:#505f79}_The Maven Surefire Plugin will scan for test classes whose fully qualified names match the following patterns._{color}
 * {color:#505f79}_{{**/Test*.java}}_{color}
 * {color:#505f79}_{{**/*Test.java}}_{color}
 * {color:#505f79}_{{**/*Tests.java}}_{color}
 * {color:#505f79}{{_**/*TestCase.java_}}{color}

{color:#172b4d}{{}}This plugin runs only classes with very specific naming convention. The "MemberRegistrationIT" class doesn't fit into this convention.{color}

 

{color:#172b4d}Solution:\{{}}{color}

{color:#172b4d}Rename the "MemberRegistrationIT" class to something like "MemberRegistrationIntegrationTest".{color}



> WildFly kitchensink quickstart doesn't run test when started by Maven
> ---------------------------------------------------------------------
>
>                 Key: WFLY-13629
>                 URL: https://issues.redhat.com/browse/WFLY-13629
>             Project: WildFly
>          Issue Type: Bug
>          Components: Quickstarts
>    Affects Versions: 20.0.0.Final
>            Reporter: Norbert Kawiński
>            Assignee: Eduardo Martins
>            Priority: Major
>
> Problem:
> When running kitchensink's tests from Maven, the script finishes with "BUILD SUCCESS" but no tests are run.
>  
> Cause:
> {color:#172b4d}"MemberRegistrationIT" class is not used by the {color}"Maven Surefire Plugin" which is responsible for running tests.
> Quoting its documentation: [https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html]
> ??{color:#505f79}_The Maven Surefire Plugin will scan for test classes whose fully qualified names match the following patterns._{color}??
>  * ??{color:#505f79}_{{**/Test*.java}}_{color}??
>  * ??{color:#505f79}_{{**/*Test.java}}_{color}??
>  * ??{color:#505f79}_{{**/*Tests.java}}_{color}??
>  * ??{color:#505f79}{{_**/*TestCase.java_}}{color}??
> {color:#172b4d}This plugin runs only classes with very specific naming convention. The "MemberRegistrationIT" class doesn't fit into this convention.{color}
>  
> {color:#172b4d}Solution:{color}
> {color:#172b4d}Rename the "MemberRegistrationIT" class to something like "MemberRegistrationIntegrationTest".{color}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jboss-jira mailing list