[ 
https://issues.apache.org/jira/browse/MNG-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Goik reopened MNG-5936:
------------------------------

My humble apologies but I just reproduced the issue on two more systems:

1. A second Linux host using an 'unspoiled' user account
2. A Windows 8.1 System running both current (freshly installed) Maven 3.3.9 on 
top of Oracle JDK 1.8

Identical Symptom: Executing "mvn test" yields just one test but according to 
the doc it should be two. Excerpt from Maven output:
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running de.hdm_stuttgart.mi.testpiece.FunctionalTest
This is from FunctionalTest (singular!).
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

So it clearly states that test methods being contained within class 
FunctionalTests do not get executed at all.

Then merely renaming FunctionalTests to MyTest yields the expected behaviour:
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running de.hdm_stuttgart.mi.testpiece.MyTest
This is from FunctionalTests (plural!).
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec
Running de.hdm_stuttgart.mi.testpiece.FunctionalTest
This is from FunctionalTest (singular!).
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

There is no parent pom.xml or any sort of left over environment whatsoever on 
these two additional systems.




> 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)

Reply via email to