For the usage of multiple database provider in DataMapper, new tests must be set in the IBatisNet.Test\NUnit\SqlMapTests.
There's already test with multiple database in Dao test (and for so test for multiple SqlMap) in IBatisNet.Test.NUnit.DaoTests/MutipleDaoTest.cs Cheers -Gilles -----Message d'origine----- De : Ted Husted [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 décembre 2004 11:48 À : ibatis-user-cs@incubator.apache.org Objet : Re: Update NUnit tests for different databases? Yes, making some type of change would be helpful. Ironically, I've always had trouble running the tests, since I have neither Oracle or MS SQL setup here. Just MySQL. Ideally, we should be able to run the tests for whatever databases may be available to a developer, by loading multiple configurations, if need be. It could also turn into a working example of using multiple database providers in the same application. (This is something that we could also discuss on ibatis-dev@, since it involves changing the codebase, rather than just using it. If someone wants to move the thread, that's OK with me.) -Ted. On Wed, 22 Dec 2004 23:15:34 -0500, roberto wrote: > Could we change the Init() structure to accommodate running > different SQL scripts depending on the database being tested? > > Ive resorted to separating out the various Oracle statements into > their own SQL files and modifying the Init() methods of the current > tests. I briefly toyed with the idea of using EXECUTE IMMEDIATE > and reworking the ScriptRunner to use an Oracle package with ref > cursors to run the DDL statements in one script/command text but > quickly got over it! > > Anyway, I think the project may already have been headed in this > direction given the MSSQL tests in their own namespace. > > For example: > > Make NUnit.SqlMapTests.StatementTest abstract. Create an > NUnit.SqlMapTests.Oracle namespace (like the existing MSSQL > namespace). And create an NUnit.SqlMapTests.Oracle.StatementTest > with a different Init(). > > Additionally, we can tag the specific db tests by NUnit Category > such as [Category(MSSQL)], [Category(MySQL)], and > [Category(Oracle)] or use some other convention. > > Roberto -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 21/12/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 21/12/2004