-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
20.0.0.Final
-
None
-
- Run 'mvn clean test' in command line
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".