Database Initialization Prior to Testing

2006-09-21 Thread Jason.Yankus
I need to clear and initialize a database prior to running our integration tests, so I can have a reliable dataset during the test cases. Are there any suggestions as to plugins or best practices for managing the cleaning and initialization of database contents prior to integration testing?

RE: Database Initialization Prior to Testing

2006-09-21 Thread LECAN Damien
I've considered, but rejected, DBunit since the dbunit plugin doesn't apparently exist for Maven2 Why do you need a maven plugin to use DBUnit ? It's an extension of JUnit, run it as a JUnit test ! It doesn't work ? Damien -

RE: Database Initialization Prior to Testing

2006-09-21 Thread Jason.Yankus
with integration tests. -jason -Original Message- From: LECAN Damien [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 10:58 AM To: Maven Users List Subject: RE: Database Initialization Prior to Testing I've considered, but rejected, DBunit since the dbunit plugin doesn't

RE: Database Initialization Prior to Testing

2006-09-21 Thread LECAN Damien
I want to make the database set up part of the integration tests as external as possible to the test cases themselves, governed as part of the build process associated with integration tests. You need your own framework, with configuration of what to do before, after each test class only when

Re: Database Initialization Prior to Testing

2006-09-21 Thread jerome lacoste
On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I didn't implement DBunit in each test case because I wanted to avoid: 1.) changing each of the database related test cases to extend from a dbunit base class (reducing my test's coupling to the framework) -and- 2.) I only want to insert