You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2012/08/01 07:38:21 UTC
[jira] (SUREFIRE-890) maven-failsafe-plugin does not pick up POJO
tests
[ https://jira.codehaus.org/browse/SUREFIRE-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-890.
---------------------------------------
Resolution: Not A Bug
Assignee: Kristian Rosenvold
This is "not a bug". Using the "Pojo" provider requires neither JUNIT nor TestNG to be on the project path. Please let us know if the documentation is somehow unclear on this.
> 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
> Assignee: Kristian Rosenvold
> 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