MylesOtter

I¡¯m having difficulty with making tests part of the msbuild process. I am attempting to get the unit tests to run as part of the build process, but I am consistently getting errors (mostly complaining about not being able to find the compiled tests ¨C see below). The unit tests are generated from MS VS 2005 Team Edition for Software Testers.

Are there any specific tricks to get unit tests to run automated

Thanks,

Myles

Run Configuration: Builder Test Run Config

Loading c:\Buddy\2007.11.02.15h51m\Private\data\DAL\Community.Web-Debug.vsmdi.testrunconfig...

Loading c:\Buddy\2007.11.02.15h51m\Private\data\DAL\Community.Web-Debug.vsmdi...

Starting execution...

C:\BaseSrc\source\community\private\builder\newbuild.proj(535,5): error : Can

not find the test 'Step_01_Insert' with storage 'bin\release\Community.Web.UnitTests.dll'.

Done building target "RunCheckinTests" in project "newbuild.proj" -- FAILED.

Done building project "newbuild.proj" -- FAILED.

Build FAILED.

C:\BaseSrc\source\community\private\builder\newbuild.proj(535,5): error : Cannot

find the test 'Step_01_Insert' with storage 'bin\release\Community.Web.UnitTests.dll'.

0 Warning(s)

1 Error(s)



Re: Visual Studio MSBuild Unit Tests and MSBuild

MylesOtter

More information:

Using the Assembly Binding Log Viewer (fuslogvw.exe), my build came up with a couple dozen errors (it had none before I added the test project). The first entry's details:

*** Assembly Binder Log Entry (11/6/2007 @ 12:39:07 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\WINNT\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = mylesotter
LOG: DisplayName = aspnet_compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///c:/Buddy/2007.11.06.12h28m/private/frontend/shared/Test/AuthModuleTest/
LOG: Initial PrivatePath = c:\XNABuddy\2007.11.06.12h28m\private\frontend\shared\Test\AuthModuleTest\bin
LOG: Dynamic Base = C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\authmoduletest.csproj\0708ad69
LOG: Cache Base = C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\authmoduletest.csproj\0708ad69
LOG: AppName = 436464e8
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: c:\Buddy\2007.11.06.12h28m\private\frontend\shared\Test\AuthModuleTest\web.config
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: aspnet_compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/authmoduletest.csproj/0708ad69/436464e8/aspnet_compiler.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/authmoduletest.csproj/0708ad69/436464e8/aspnet_compiler/aspnet_compiler.DLL.
LOG: Attempting download of new URL file:///c:/Buddy/2007.11.06.12h28m/private/frontend/shared/Test/AuthModuleTest/bin/aspnet_compiler.DLL.
LOG: Attempting download of new URL file:///c:/Buddy/2007.11.06.12h28m/private/frontend/shared/Test/AuthModuleTest/bin/aspnet_compiler/aspnet_compiler.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/authmoduletest.csproj/0708ad69/436464e8/aspnet_compiler.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/authmoduletest.csproj/0708ad69/436464e8/aspnet_compiler/aspnet_compiler.EXE.
LOG: Attempting download of new URL file:///c:/Buddy/2007.11.06.12h28m/private/frontend/shared/Test/AuthModuleTest/bin/aspnet_compiler.EXE.
LOG: Attempting download of new URL file:///c:/Buddy/2007.11.06.12h28m/private/frontend/shared/Test/AuthModuleTest/bin/aspnet_compiler/aspnet_compiler.EXE.
LOG: All probing URLs attempted and failed.