Re: frustration with testNG tests running twice.
org.apache.maven.plugins maven-surefire-plugin 2.4.3 -Xmx256m false * src/test/resources/testng.xml * **/selenium/*Test.java **/*$* surefire-it integration-test test * src/test/resources/testng-functional.xml * none **/selenium/*Test.java On Wed, Sep 24, 2008 at 2:36 PM, Mark Derricutt <[EMAIL PROTECTED]> wrote: > 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 6:37 AM, Mick Knutson <[EMAIL PROTECTED] > >wrote: > > > 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 integration-test phase. > > > -- --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Vacation Rental: http://tahoe.baselogic.com
Re: frustration with testNG tests running twice.
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 6:37 AM, Mick Knutson <[EMAIL PROTECTED]>wrote: > 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 integration-test phase. >
Re: frustration with testNG tests running twice.
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 integration-test phase. On Tue, Sep 23, 2008 at 10:06 PM, Brett Porter <[EMAIL PROTECTED]>wrote: > 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 Knutson <[EMAIL PROTECTED]>: > > 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: > > > > > >unit-tests > >test > > > >test > > > > > >false > >false > testFailureIgnore> > > > >**/*.java > > > > > > > > > > > > > > > > > > On Tue, Sep 23, 2008 at 3:12 PM, Brett Porter <[EMAIL PROTECTED] > >wrote: > > > >> 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 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 have this declaration: > >> >> > > >> >> >org.apache.maven.plugins > >> >> >maven-surefire-plugin > >> >> > > >> >> > > >> >> >unit-tests > >> >> >test > >> >> > > >> >> >test > >> >> > > >> >> > > >> >> >false > >> >> > > >> false > >> >> > > >> >> >**/*.java > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> >integration-tests > >> >> >integration-test > >> >> > > >> >> >test > >> >> > > >> >> > > >> >> >false > >> >> > > true > >> >> > > >> >> > > >> >> > > >> >> > > src/test/resources/testng-functional.xml > >> >> > > >> >> > > >> >> > > >> >> > suite-init,database,functional,selenium > >> >> >unit > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > Now I even commented out the test to stop unit test > >> from > >> >> > running, but they run anyways. And because there is not a > testng.xml > >> for > >> >> > that phase, the tests fail. > >> >> > > >> >> > Can someone please help me get just my functional tests to run in > the > >> >> > integration-test ??? > >> >> > > >> >> > Your help is greatly appreciated! > >> >> > > >> >> > -- > >> >> > --- > >> >> > Thank You… > >> >> > > >> >> > Mick Knutson > >> >> > BASE Logic, inc. > >> >> > (415) 354-4215 > >> >> > > >> >> > Website: http://baselogic.com > >> >> > Blog: http://baselogic.com/blog > >> >> > BLiNC Magazine: http://blincmagazine.com > >> >> > Linked IN: http://linkedin.com/in/mickknutson > >> >> > DJ Mick: http://djmick.com > >> >> > MySpace: http://myspace.com/mickknutson > >> >> > Vacation Rental: http://tahoe.baselogic.com > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Brett Porter > >> >> Blog: http://blogs.exist.com/bporter/ > >> >> > >> >> - > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> For additional commands, e-mail: [EMAIL PROTECTED] > >> >> > >> >> > >> > > >> > > >> > -- > >> > --- > >> > Thank You… > >> > > >> > Mick Knutson > >> > BASE Logic, inc. > >> > (415) 354-4215 > >> > > >> > Website: http://baselogic.com > >> > Blog: http://baselogic.com/blog > >> > BLiNC Magazine: http://blincmagazine.com > >> > Linked IN: http://linkedin.com/in/mi
Re: frustration with testNG tests running twice.
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 weird things running. I´ve not yet submitted this to jira, but thats coming soon.. On Wed, Sep 24, 2008 at 5:10 AM, Mick Knutson <[EMAIL PROTECTED]>wrote: > What doe you mean *default location* ? Do you mean package names? >
Re: frustration with testNG tests running twice.
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 Knutson <[EMAIL PROTECTED]>: > 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: > > >unit-tests >test > >test > > >false >false testFailureIgnore> > >**/*.java > > > > > > > > > On Tue, Sep 23, 2008 at 3:12 PM, Brett Porter <[EMAIL PROTECTED]>wrote: > >> 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 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 have this declaration: >> >> > >> >> >org.apache.maven.plugins >> >> >maven-surefire-plugin >> >> > >> >> > >> >> >unit-tests >> >> >test >> >> > >> >> >test >> >> > >> >> > >> >> >false >> >> > >> false >> >> > >> >> >**/*.java >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >integration-tests >> >> >integration-test >> >> > >> >> >test >> >> > >> >> > >> >> >false >> >> >true >> >> > >> >> > >> >> > >> >> > src/test/resources/testng-functional.xml >> >> > >> >> > >> >> > >> >> > suite-init,database,functional,selenium >> >> >unit >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Now I even commented out the test to stop unit test >> from >> >> > running, but they run anyways. And because there is not a testng.xml >> for >> >> > that phase, the tests fail. >> >> > >> >> > Can someone please help me get just my functional tests to run in the >> >> > integration-test ??? >> >> > >> >> > Your help is greatly appreciated! >> >> > >> >> > -- >> >> > --- >> >> > Thank You… >> >> > >> >> > Mick Knutson >> >> > BASE Logic, inc. >> >> > (415) 354-4215 >> >> > >> >> > Website: http://baselogic.com >> >> > Blog: http://baselogic.com/blog >> >> > BLiNC Magazine: http://blincmagazine.com >> >> > Linked IN: http://linkedin.com/in/mickknutson >> >> > DJ Mick: http://djmick.com >> >> > MySpace: http://myspace.com/mickknutson >> >> > Vacation Rental: http://tahoe.baselogic.com >> >> > >> >> >> >> >> >> >> >> -- >> >> Brett Porter >> >> Blog: http://blogs.exist.com/bporter/ >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > --- >> > Thank You… >> > >> > Mick Knutson >> > BASE Logic, inc. >> > (415) 354-4215 >> > >> > Website: http://baselogic.com >> > Blog: http://baselogic.com/blog >> > BLiNC Magazine: http://blincmagazine.com >> > Linked IN: http://linkedin.com/in/mickknutson >> > DJ Mick: http://djmick.com >> > MySpace: http://myspace.com/mickknutson >> > Vacation Rental: http://tahoe.baselogic.com >> > >> >> >> >> -- >> Brett Porter >> Blog: http://blogs.exist.com/bporter/ >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > --- > Thank You… > > Mick Knutson > BASE Logic, inc. > (415) 354-4215 > > Website: http://baselogic.com > Blog: http://baselogic.com/blog > BLiNC Magazine: http://blincmagazine.com > Linked IN: http://linkedin.com/in/mickknutson > DJ Mick: http://djmick.com > MySpace: http://myspace.com/mickknuts
Re: frustration with testNG tests running twice.
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: unit-tests test test false false **/*.java On Tue, Sep 23, 2008 at 3:12 PM, Brett Porter <[EMAIL PROTECTED]>wrote: > 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 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 have this declaration: > >> > > >> >org.apache.maven.plugins > >> >maven-surefire-plugin > >> > > >> > > >> >unit-tests > >> >test > >> > > >> >test > >> > > >> > > >> >false > >> > > false > >> > > >> >**/*.java > >> > > >> > > >> > > >> > > >> > > >> >integration-tests > >> >integration-test > >> > > >> >test > >> > > >> > > >> >false > >> >true > >> > > >> > > >> > > >> > src/test/resources/testng-functional.xml > >> > > >> > > >> > > >> > suite-init,database,functional,selenium > >> >unit > >> > > >> > > >> > > >> > > >> > > >> > > >> > Now I even commented out the test to stop unit test > from > >> > running, but they run anyways. And because there is not a testng.xml > for > >> > that phase, the tests fail. > >> > > >> > Can someone please help me get just my functional tests to run in the > >> > integration-test ??? > >> > > >> > Your help is greatly appreciated! > >> > > >> > -- > >> > --- > >> > Thank You… > >> > > >> > Mick Knutson > >> > BASE Logic, inc. > >> > (415) 354-4215 > >> > > >> > Website: http://baselogic.com > >> > Blog: http://baselogic.com/blog > >> > BLiNC Magazine: http://blincmagazine.com > >> > Linked IN: http://linkedin.com/in/mickknutson > >> > DJ Mick: http://djmick.com > >> > MySpace: http://myspace.com/mickknutson > >> > Vacation Rental: http://tahoe.baselogic.com > >> > > >> > >> > >> > >> -- > >> Brett Porter > >> Blog: http://blogs.exist.com/bporter/ > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > --- > > Thank You… > > > > Mick Knutson > > BASE Logic, inc. > > (415) 354-4215 > > > > Website: http://baselogic.com > > Blog: http://baselogic.com/blog > > BLiNC Magazine: http://blincmagazine.com > > Linked IN: http://linkedin.com/in/mickknutson > > DJ Mick: http://djmick.com > > MySpace: http://myspace.com/mickknutson > > Vacation Rental: http://tahoe.baselogic.com > > > > > > -- > Brett Porter > Blog: http://blogs.exist.com/bporter/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Vacation Rental: http://tahoe.baselogic.com
Re: frustration with testNG tests running twice.
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 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 have this declaration: >> > >> >org.apache.maven.plugins >> >maven-surefire-plugin >> > >> > >> >unit-tests >> >test >> > >> >test >> > >> > >> >false >> >false >> > >> >**/*.java >> > >> > >> > >> > >> > >> >integration-tests >> >integration-test >> > >> >test >> > >> > >> >false >> >true >> > >> > >> > >> > src/test/resources/testng-functional.xml >> > >> > >> > >> > suite-init,database,functional,selenium >> >unit >> > >> > >> > >> > >> > >> > >> > Now I even commented out the test to stop unit test from >> > running, but they run anyways. And because there is not a testng.xml for >> > that phase, the tests fail. >> > >> > Can someone please help me get just my functional tests to run in the >> > integration-test ??? >> > >> > Your help is greatly appreciated! >> > >> > -- >> > --- >> > Thank You… >> > >> > Mick Knutson >> > BASE Logic, inc. >> > (415) 354-4215 >> > >> > Website: http://baselogic.com >> > Blog: http://baselogic.com/blog >> > BLiNC Magazine: http://blincmagazine.com >> > Linked IN: http://linkedin.com/in/mickknutson >> > DJ Mick: http://djmick.com >> > MySpace: http://myspace.com/mickknutson >> > Vacation Rental: http://tahoe.baselogic.com >> > >> >> >> >> -- >> Brett Porter >> Blog: http://blogs.exist.com/bporter/ >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > --- > Thank You… > > Mick Knutson > BASE Logic, inc. > (415) 354-4215 > > Website: http://baselogic.com > Blog: http://baselogic.com/blog > BLiNC Magazine: http://blincmagazine.com > Linked IN: http://linkedin.com/in/mickknutson > DJ Mick: http://djmick.com > MySpace: http://myspace.com/mickknutson > Vacation Rental: http://tahoe.baselogic.com > -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: frustration with testNG tests running twice.
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 have this declaration: > > > >org.apache.maven.plugins > >maven-surefire-plugin > > > > > >unit-tests > >test > > > >test > > > > > >false > >false > > > >**/*.java > > > > > > > > > > > >integration-tests > >integration-test > > > >test > > > > > >false > >true > > > > > > > > src/test/resources/testng-functional.xml > > > > > > > > suite-init,database,functional,selenium > >unit > > > > > > > > > > > > > > Now I even commented out the test to stop unit test from > > running, but they run anyways. And because there is not a testng.xml for > > that phase, the tests fail. > > > > Can someone please help me get just my functional tests to run in the > > integration-test ??? > > > > Your help is greatly appreciated! > > > > -- > > --- > > Thank You… > > > > Mick Knutson > > BASE Logic, inc. > > (415) 354-4215 > > > > Website: http://baselogic.com > > Blog: http://baselogic.com/blog > > BLiNC Magazine: http://blincmagazine.com > > Linked IN: http://linkedin.com/in/mickknutson > > DJ Mick: http://djmick.com > > MySpace: http://myspace.com/mickknutson > > Vacation Rental: http://tahoe.baselogic.com > > > > > > -- > Brett Porter > Blog: http://blogs.exist.com/bporter/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Vacation Rental: http://tahoe.baselogic.com
Re: frustration with testNG tests running twice.
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: > >org.apache.maven.plugins >maven-surefire-plugin > > >unit-tests >test > >test > > >false >false > >**/*.java > > > > > >integration-tests >integration-test > >test > > >false >true > > > > src/test/resources/testng-functional.xml > > > > suite-init,database,functional,selenium >unit > > > > > > > Now I even commented out the test to stop unit test from > running, but they run anyways. And because there is not a testng.xml for > that phase, the tests fail. > > Can someone please help me get just my functional tests to run in the > integration-test ??? > > Your help is greatly appreciated! > > -- > --- > Thank You… > > Mick Knutson > BASE Logic, inc. > (415) 354-4215 > > Website: http://baselogic.com > Blog: http://baselogic.com/blog > BLiNC Magazine: http://blincmagazine.com > Linked IN: http://linkedin.com/in/mickknutson > DJ Mick: http://djmick.com > MySpace: http://myspace.com/mickknutson > Vacation Rental: http://tahoe.baselogic.com > -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]