Migration is no longer executed per test, its ran once and the db is cloned after that, (faster tests, cleaner logs ;)

This commit is contained in:
kay.one
2011-10-16 19:03:54 -07:00
parent f1248d12c6
commit c55ca42c21
4 changed files with 18 additions and 10 deletions

View File

@@ -21,8 +21,7 @@ namespace NzbDrone.Core.Test
{
try
{
LogManager.Configuration =
new XmlLoggingConfiguration(Path.Combine(CentralDispatch.AppPath, "log.config"), false);
LogManager.Configuration = new XmlLoggingConfiguration(Path.Combine(CentralDispatch.AppPath, "log.config"), false);
LogManager.ThrowExceptions = true;
var exceptionVerification = new ExceptionVerification();
@@ -35,7 +34,6 @@ namespace NzbDrone.Core.Test
Console.WriteLine("Unable to configure logging. " + e);
}
var filesToDelete = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.sdf", SearchOption.AllDirectories);
foreach (var file in filesToDelete)
{
@@ -45,6 +43,8 @@ namespace NzbDrone.Core.Test
}
catch { }
}
MockLib.CreateDataBaseTemplate();
}
}
}