Re: Including test classes in war packaging.

2009-02-14 Thread Subhrajyoti Moitra
Hello Mick, I am not really doing "DB unit testing", my backend code (the core business logic) never interacts with the DB. I am trying to unit test only the business logic code. The DB code is merely to load test data and push that data into the business logic classes. The test servlets are the en

Re: Including test classes in war packaging.

2009-02-14 Thread Mick Knutson
I currently have a data-services.jar that contains all my db code. with TestNG, DBUnit and MySql & H2, I run full integration tests. my integration test coverage is >85% total coverage. I test both h2 in-memory, then run again against my MySql once I am on my build server. H2 is just faster for loc

Re: Including test classes in war packaging.

2009-02-14 Thread Stephen Connolly
1 give them a test-jar that has the unit tests 2 give them a second war with the test interface Sent from my [rhymes with myPod] ;-) On 14 Feb 2009, at 16:54, Subhrajyoti Moitra wrote: Hello, My client wants to "unit test" the core components of this application. So, i went about creat

Re: Including test classes in war packaging.

2009-02-14 Thread Subhrajyoti Moitra
Hello, My client wants to "unit test" the core components of this application. So, i went about creating a very simple test harness (1 test servlet+2 jsp) to trigger the unit test-data load (mysql DB), as well as running the unit tests. A simple report is generated at the end of the test and shown

Re: Including test classes in war packaging.

2009-02-14 Thread Mick Knutson
why would you want test classes in a war? Integration testing? Look at Selenium instead. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked

Including test classes in war packaging.

2009-02-14 Thread Subhrajyoti Moitra
Hi, I am using maven2 to build a war. In my src/test/java i have some test servlets which are also to be included in the distribution. It seems that the default war packaging only takes into account the src/main/java classes. Please advice, how I can include all the test files as well in the war?

Re: test-classes in War

2006-08-02 Thread devillina
context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5613042 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: test-classes in War

2006-08-01 Thread David J. M. Karlsen
devillina wrote: I think i'm doing something wrong. I put the thing for the jar-plugin in my pom.xml (the one that builds the war). And i do get a test-jar build. But building this jar is the last thing maven does. So when i put the dependency in my war-plugin like this: maven-war-plug

Re: test-classes in War

2006-08-01 Thread devillina
! -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5590289 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: test-classes in War

2006-07-31 Thread David J. M. Karlsen
devillina wrote: Hi, is there a way to include the test classes in the war? thx See http://maven.apache.org/guides/mini/guide-attached-tests.html. You can then depend on this artifact in your war. Or you simply include your tests in the main source tree (and not in the test/java directory).

test-classes in War

2006-07-31 Thread devillina
Hi, is there a way to include the test classes in the war? thx -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5577745 Sent from the Maven - Users forum at Nabble.com. - To