Re: Conditionally use includes and excludes for tests

2007-11-30 Thread Wayne Fay
This Wiki page lists some options for using Maven with Integration Testing:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

Wayne

On 11/30/07, lightbulb432 [EMAIL PROTECTED] wrote:

 I have unit tests and integration tests in /src/test/java (e.g.
 Class1UnitTest.java and Class1IntegrationTest.java), and I'd like to have
 includes and excludes cause only unit tests to run during the
 development profile, but to cause the unit and integration tests to run
 during the integration-testing profile. How can I do this?

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Conditionally-use-includes-and-excludes-for-tests-tf4923208s177.html#a14088990
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Conditionally use includes and excludes for tests

2007-11-30 Thread lightbulb432

I have unit tests and integration tests in /src/test/java (e.g.
Class1UnitTest.java and Class1IntegrationTest.java), and I'd like to have
includes and excludes cause only unit tests to run during the
development profile, but to cause the unit and integration tests to run
during the integration-testing profile. How can I do this?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Conditionally-use-includes-and-excludes-for-tests-tf4923208s177.html#a14088990
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Conditionally use includes and excludes for tests

2007-11-30 Thread Kalle Korhonen
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
idsurefire-it/id
phaseintegration-test/phase
configuration
includes
include**/*IntegrationTest.java/include
/includes
/configuration
goals
goaltest/goal
/goals
/execution
/executions
configuration
includes
include**/*UnitTest.java/include
/includes
/configuration
/plugin


(An *unmodified* configuration of what I'm using in one project)

Kalle


On Nov 30, 2007 10:57 AM, lightbulb432 [EMAIL PROTECTED] wrote:


 I have unit tests and integration tests in /src/test/java (e.g.
 Class1UnitTest.java and Class1IntegrationTest.java), and I'd like to have
 includes and excludes cause only unit tests to run during the
 development profile, but to cause the unit and integration tests to run
 during the integration-testing profile. How can I do this?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Conditionally-use-includes-and-excludes-for-tests-tf4923208s177.html#a14088990
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]