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
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
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
configuration
argLine-Xmx256m/argLine
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
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
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
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
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
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
I have this declaration:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
idunit-tests/id
phasetest/phase
10 matches
Mail list logo