Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13629

WildFly kitchensink quickstart doesn't run test when started by Maven

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Explained
    • Affects Version/s: 20.0.0.Final
    • Fix Version/s: None
    • Component/s: Quickstarts
    • Labels:
      None
    • Steps to Reproduce:
      1. Run 'mvn clean test' in command line

      Description

      Problem:

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

       

      Cause:

      "MemberRegistrationIT" class is not used by the "Maven Surefire Plugin" which is responsible for running tests.

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

      The Maven Surefire Plugin will scan for test classes whose fully qualified names match the following patterns.

      • */Test.java
      • **/*Test.java
      • **/*Tests.java
      • **/*TestCase.java

      This plugin runs only classes with very specific naming convention. The "MemberRegistrationIT" class doesn't fit into this convention.

       

      Solution:

      Rename the "MemberRegistrationIT" class to something like "MemberRegistrationIntegrationTest".

        Attachments

          Activity

            People

            Assignee:
            emmartins Eduardo Martins
            Reporter:
            register-1 Norbert Kawiński (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: