Re: frustration with testNG tests running twice.

2008-09-24 Thread Mick Knutson
What I want to have, is testng.xml tests run once in the test phase, and testng-functional.xml tests to run once in the integration-test phase. Right now, I have the cfg I sent. So I have my testng.xml tests running twice in the test phase, and the testng-functional.xml tests running twice in the

Re: frustration with testNG tests running twice.

2008-09-24 Thread Mark Derricutt
In the config you first post, only one of your executions mentions a XML file so it'll ignore (or generate) your testng.xml. What what maven/testng stuff I've done - if you mention the suitexml file then groups/exclusions defined in the pom are ignored ( or should be ). On Thu, Sep 25, 2008 at

Re: frustration with testNG tests running twice.

2008-09-24 Thread Mick Knutson
plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.3/version configuration argLine-Xmx256m/argLine

Re: frustration with testNG tests running twice.

2008-09-23 Thread Mick Knutson
What doe you mean *default location* ? Do you mean package names? On Mon, Sep 22, 2008 at 7:59 PM, Brett Porter [EMAIL PROTECTED]wrote: They are probably in the default location so the default configuration runs them in the test phase. - Brett 2008/9/20 Mick Knutson [EMAIL PROTECTED]: I

Re: frustration with testNG tests running twice.

2008-09-23 Thread Brett Porter
2008/9/24 Mick Knutson [EMAIL PROTECTED]: What doe you mean *default location* ? Do you mean package names? src/test/java which would be picked up by default - do your tests reside in there? ie, if you comment out all the below and run mvn test, do they run? - Brett On Mon, Sep 22, 2008 at

Re: frustration with testNG tests running twice.

2008-09-23 Thread Mick Knutson
Yes, they reside in src/test/java What do you want me to comment out? I commented this out but they still ran in the unit test pahase: execution idunit-tests/id phasetest/phase goals

Re: frustration with testNG tests running twice.

2008-09-23 Thread Brett Porter
I'm a bit confused by your configuration. You have all your test sources in src/test/java and are excluding everything from unit testing, then running it all in integration-testing? IS the unit execution designed to run some unit tests, or disable the default ones? - Brett 2008/9/24 Mick

Re: frustration with testNG tests running twice.

2008-09-23 Thread Mark Derricutt
Are you setting the testName attribute at all in any of your test classes? I noticed an interesting bug this morning with surefire/testng where if I had tests changing the testName, then the testng XML file was generated all wonky (ignoring groups, adding all classes) and causing all manner of

Re: frustration with testNG tests running twice.

2008-09-22 Thread Brett Porter
They are probably in the default location so the default configuration runs them in the test phase. - Brett 2008/9/20 Mick Knutson [EMAIL PROTECTED]: I have this declaration: plugin groupIdorg.apache.maven.plugins/groupId

frustration with testNG tests running twice.

2008-09-20 Thread Mick Knutson
I have this declaration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idunit-tests/id phasetest/phase