]
Chao Wang commented on WFLY-13629:
----------------------------------
That is an integration test which is supposed to run with arquillian managed / remote
server.
please refer to
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-pl...]
??{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}