Skip to content

CEG-Ecoles/NDbUnit

 
 

Repository files navigation

#NDbUnit is a .NET library for managing database state during unit testing.#

Cette version est une version de NDBUnit allégée pour le CEG.

Les modifications apportées sont les suivantes :

  • support des bases Oracle uniquement
  • pas de diable/enable des contraintes avant/après les différentes opérations
  • suppression des opérations pas utilisées (Delete, InsertIdentity et Update)

Pour faire une nouvelle version :

  1. Compiler la solution avec la configuration "Release"
  2. Modifier la version des l'assembly NDBUnit.Core (fichier AssemblyInfo.cs)
  3. Modifier la version dans les fichiers "nuget" (Packaging/*.nuspec) (ne pas oublier de modifier la version de dépendance)
  4. Packager et pousser la version sur le serveur NuGet du CEG avec le batch PackAndPush.cmd

Build status

Project Stats

NDbUnit may be used to increase repeat-ability in unit tests that interact with a database by ensuring that the database's state is consistent across execution of tests. NDbUnit does this by allowing the unit test to perform an operation on a dataset before or after the execution of a test, thus ensuring a consistent state.

To better understand how NDbUnit works, check out the Quick Start Guide

The easiest way to get NDbUnit is via the NuGet Package Manager from right inside Visual Studio!

NDbUnit:

  • is an open-source Apache 2.0-licensed project
  • is written in C#
  • compiled against the .NET 2.0 CLR and runs with the 2.0, 3.0, and 3.5, 4.0, and 4.5 fx releases
  • borrows many ideas from DbUnit, and makes them available for the .NET platform

NDbUnit supports the following Database Server Targets:

  • Microsoft SQL Server 2005 2008, 2012, 2014 (Express thru Enterprise)
  • Microsoft SQL Server CE 2005 and 2008
  • Microsoft OleDB-supported databases
  • SQLLite
  • MySQL
  • PostgreSQL through 9.4
  • Oracle (XE thru Enterprise, tested up to 12c)

For additional planned features and enhancements, see the Project Road-Map.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.0%
  • Batchfile 1.0%