Why are you attempting to add them to the pom? If you just put them in the 
right folder (src/test/java) and name them Test*.java (which you already have) 
then they will run fine - no pom mods necessary.

I think what you are doing just keeps overwriting the same maven variable 
(unittests.include) so when it goes to run the tests, the only pattern it knows 
to check is the bottom one.

You really should only be messing with pons for unit tests when there are tests 
that are failing that we want to exclude from the build. This is a super super 
rare case, so in general you don't need to worry about it. 

Does that help?

- Jesse Yates

Sent from my iPhone.

On Oct 6, 2011, at 10:13 AM, Ramakrishna S Vasudevan 00902313 
<[email protected]> wrote:

> Hi 
> 
> How should i add specific test case names that needs to be executed while 
> running mvn tests.
> In the latest pom.xml we have
> <unittest.include>**/Test**.java</unittest.include>
> 
> Now if i try to add some 3 or 4 testcase name like stated below then only the 
> last one in the list gets executed.
>    <unittest.include>**/TestLogRolling*.java</unittest.include>
>    <unittest.include>**/TestOpenRegionHandler*.java</unittest.include>
>    <unittest.include>**/TestSplitTransaction*.java</unittest.include>
> 
> This is running only TestSplitTransaction.java
> 
> Previously             <include>**/TestHLog.java</include>
> <include>**/TestMaster*.java</include>
> It was running only TestHLog and all testcases starting with TestMaster.
> 
> Am i missing something here?  Any help is greatly appreciated.
> 
> Regards
> Ram

Reply via email to