Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.010 Beiträge
 
Delphi 2009 Professional
 
#5

AW: Datenbank auf den Anfangszustand zurücksetzen

  Alt 16. Jan 2013, 15:02
Eine weit verbreitete und weitgehend datenbankunabhängige Lösung ist DBUnit, es läßt sich gut in Apache Ant Buildskripte integrieren (und damit auch in CI Systeme wie Hudson oder Jenkins).

Zitat:
DbUnit is a JUnit extension (also usable with Ant) targeted at database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.

DbUnit has the ability to export and import your database data to and from XML datasets. Since version 2.0, DbUnit can also work with very large datasets when used in streaming mode. DbUnit can also help you to verify that your database data match an expected set of values.
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat