index > Team Foundation Server - Build Automation > Unit tests on Team Build

Unit tests on Team Build


Hi

I am trying to get Unit Tests running as part of the daily build. I have setup the test lists and added them to the Team Build. The Unit Tests run correctly locally, however when I go to run the Build I get the following error

MSBUILD : warning : Failed to instantiate type 'Microsoft.VisualStudio.TestTools.WebStress.WebTestRunConfig, Microsoft.VisualStudio.QualityTools.LoadTest, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.LoadTest' or one of its dependencies. The system cannot find the file specified.

Now VSTS SDE is installed on the Build server and I thought this was all that was needed to automate the Unit Tests, is this assumption correct? It looks to me like it's trying to load other testing dll's around testing and not finding them? Is there someway to stop this so it only runs the unit tests? I don't want to have to install VSTS Test on the build server if it's not necessary?

Any help appreciated.

Andy.

andybritcliffe

Andy,

I think you might be a victim of a bug in MSBuild. It has a problem retrieving dependancies of dependancies. There is more information about it on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=198219&SiteID=1. It seems the Visual Studio IDE doesn't have an issue finding dependancies of dependancies but MSBuild does.

DavidBoss
Which version of Visual Studio have you used locally? it seems it has some problem becouse of references, if you used locally Tester or Team Suite edition to run locally it may have some references to this assembly, specially if you have load tests of course.


Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

Hi Guys

Thanks for your replies.

I actually installed the team suite testing tools so I could create the Test lists to work with TFS Build. Is there a way I can remove the reference so it only uses the unit test functionality?

Andy.

andybritcliffe
reply 4

You can use google to search for other answers

 

More Articles

How can I run build locally?
Adding copyfiles task to build script does not work
Change default build number
Help on importing schema
Config to run all unit tests without test list
How to make the build system not to sync everything under the sol...
How to do strong name signing and digital signature signing in th...
TFS Build and web deployment project problem.
Build fails with no errors in TFSBuild using AssemblyInfoTask
Build server output folder
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Team Build: Object reference not set to …
Automaticaly deployment to multiple envi…
"Unable to determine the workspace&…
AfterBuild target is being skipped
Build with tests fails with no indicatio…
LastGoodBuildNumber
Unable to call a target from overidden C…
What to install to be able to run Team B…
How to generate code documentation using…
Building MSI in Team Build... (once more)
Web Application Project, Web Deployment …
Correlating Assembly Versions with Sourc…
Visual Build Pro scripts
Send an email after build
How To Get Around The Unique Build Numbe…

Hot Articles

Directory Structure - Best Practices Que…
WEB unit test in TFSBuild and TestrunCon…
Copying Files for Team Foundation Build
vsprops not overriding output directory
PropertyGroup and ItemGroup
protecting the team build machines over …
Problem building a simple solution conta…
Missing fields in build data
Build Type problem
TFS Folder Renames...
Wrong value in LastGoodBuildNumber prope…
Build Task Help
Test coverage analysis report viewing
RTM: Build Type running Test List alway…
Starting with TS builds

Recommend Articles

Building project which referring dlls fr…
Team Build: SQL Error 512
Automate your build
Removing old entries from the Resolved i…
Build Failed on RC
Build not finding referenced DLL
Web Setup, where there is no IDE in the …
Reducing the change-tracking scope for T…
Missing Build Labels
Adding copyfiles task to build script do…
Override default drop location for each …
Build directory on selected machine
changing of project-properties
Team Build, ASPNet_Compiler.exe, & a…
Setting Importance Status for BVT