Browse files

Adding test run to build.bat

  • Loading branch information...
1 parent 11cd86b commit e71a131e9ce1d6008141752d7a708852c7c31af4 @jchadwick jchadwick committed Dec 11, 2011
Showing with 7 additions and 11 deletions.
  1. +2 −0 .gitignore
  2. +0 −9 IntegrationTests/Core/DataAccess/RepositoryTestFixture.cs
  3. +5 −2 build.bat
View
2 .gitignore
@@ -0,0 +1,2 @@
+TestResults
+Build
View
9 IntegrationTests/Core/DataAccess/RepositoryTestFixture.cs
@@ -20,15 +20,6 @@ protected void AssertCanSaveNewEntity()
Assert.AreEqual(EntityState.Unchanged, DataContext.Entry(entity).State);
}
- protected void AssertCanUpdateEntity()
- {
- var entity = CreateValidEntity();
-
- Repository.Save(entity);
-
- DataContext.Entry(entity).
- }
-
[TestInitialize]
public void TestInitialize()
{
View
7 build.bat
@@ -1,3 +1,6 @@
-SET MSBUILD=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
+SET MSBUILD="%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
+SET MSTEST="%VS100COMNTOOLS%..\IDE\mstest.exe"
+SET BUILDDIR="%CD%\Build"
-%MSBUILD% /t:Clean,Rebuild /p:Configuration=Release "Programming ASP.NET MVC.sln"
+%MSBUILD% /t:Clean,Rebuild /p:OutDir=%BUILDDIR%/ /p:Configuration=Release "Programming ASP.NET MVC.sln"
+%MSTEST% /testcontainer:%BUILDDIR%/UnitTests.dll /testcontainer:%BUILDDIR%/IntegrationTests.dll

0 comments on commit e71a131

Please sign in to comment.