Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding test run to build.bat

  • Loading branch information...
commit e71a131e9ce1d6008141752d7a708852c7c31af4 1 parent 11cd86b
@jchadwick jchadwick authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.