John Rodriguez created SUREFIRE-890: ---------------------------------------
Summary: maven-failsafe-plugin does not pick up POJO tests Key: SUREFIRE-890 URL: https://jira.codehaus.org/browse/SUREFIRE-890 Project: Maven Surefire Issue Type: Bug Components: Maven Failsafe Plugin Affects Versions: 2.12 Environment: Windows 7 Enterprise SP1 Java 1.6 STS 2.9.2.RELEASE Maven 3.0.2 (external) Reporter: John Rodriguez Priority: Minor Per the docs here: http://maven.apache.org/plugins/maven-failsafe-plugin/examples/pojo-test.html "A [POJO] test class should be named **/*Test and should contain test* methods" However, the following tests are not being executed by the plugin: Test Class (before) {code} public class GameResourceTest { public void testGetGamesForDate_20120603_status200Expected() ... public void testGetGamesForDate_20120608_status404Expected() ... ... } {/code} Maven Console {code} [INFO] --- maven-failsafe-plugin:2.12:integration-test (integration-test) @ gameservice --- [INFO] Failsafe report directory: $$$\gameservice\target\failsafe-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 {/code} However, if I copy and rename the class appropriately and extend JUnit, the tests execute. Test Class (after) {code} import junit.framework.TestCase; public class GameResourceTestIT extends TestCase { public void testGetGamesForDate_20120603_status200Expected() ... public void testGetGamesForDate_20120608_status404Expected() ... ... } {/code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira