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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 20.0.0.Final
    • Quickstarts
    • None
      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

            emartins@redhat.com Eduardo Martins
            register-1 Norbert Kawiński (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: