[
https://issues.apache.org/jira/browse/MNG-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Heinz Marbaise closed MNG-5936.
------------------------------------
Resolution: Cannot Reproduce
Assignee: Karl Heinz Marbaise
The execution of tests in this case is related to maven-surefire-plugin and
it's appropriate configuration of the [naming
schema|https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#includes]...
And renaming the second {{FunctionalTests}} into {{MyTestClass.java}} will not
change the result cause it does not match the naming schema...Only if in one of
your parent pom's the configuration for maven-surefire-plugin has been change
could explain the behaviour in the second case so i will close this issue. If
you have further information please don't hesitate to reopen the issue and
explain more in details what the problem is.
> mvn test classname issue
> ------------------------
>
> Key: MNG-5936
> URL: https://issues.apache.org/jira/browse/MNG-5936
> Project: Maven
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 3.0.5
> Environment: Ubuntu Linux 14.04 x86_64 / Oracle Java 1.8.0_66 / Junit
> 4.12
> Reporter: Martin Goik
> Assignee: Karl Heinz Marbaise
> Labels: junit
>
> Complete source code available at
> https://cloud.mi.hdm-stuttgart.de/owncloud/index.php/s/6dTJHyjm5y1yVGY.
> Project contains two test classes "FunctionalTests" (plural) and
> "FunctionalTest" (singular). Test methods within the latter get executed,
> those from the first class won't:
> mvn test
> ...
> Tests run: 1, ...
> Merely renaming class FunctionalTests to e.g. "MyTestClass" solves the issue
> resulting in:
> Tests run: 2, ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)