Problem with Team Build w/Webserivce / Site

I was able to successfully build a solution which includes a web service, web site (which references the service) and two testing solutions - This build configuration did not actually run the tests.

I confirmed that the tests ran successfully on the local machine.

I then ran the build again but requested that the tests be run. The build failed. This is a partial output from the build log:

Target RunTestWithConfiguration:

MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build.

The previous error was converted to a warning because the task was called with ContinueOnError=true.

Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".

Done building target "RunTestWithConfiguration" in project "TFSBuild.proj".

Done building project "TFSBuild.proj".

There is some output information and then three warning lines:

Build succeeded.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "EffortTrackingServiceTests, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

c:\EffortTrackingBuilds\Effort Tracking\Test 3 with Tests\Sources\EffortTrackingProject\EffortTracking.sln : warning MSB4078: The project file "EffortTrackingDatabase\EffortTrackingDatabase.dbp" is not supported by MSBuild and cannot be built.

MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build.

3 Warning(s)

0 Error(s)

However, all tests failed. Based on the first message, is it required for VSTS to be installed on the build machine in order to run tests? I didn't see that in the documentation anywhere...

Jeff

[2146 byte] By [JeffLevinson] at [2007-12-17]
# 1
Hello Jeff - You need to have either VSTT (Visual Studio Team Test edition) or VSTS installed on the build server for tests to run as part of build process.

The other 2 warnings that you have posted have nothing to do with the tests, these must be compiler warnings.

Thanks for using Team Build! Please let me know if you need any other info.

-Anu

Anutthara at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Anutthara, I know this is a strange request, but could I e-mail you directly? I'm finishing up a book on VSTS right now (Michael Leworthy at Microsoft is responsible for getting the chapters tech reviewed) and the Team Build chapter is the last chapter I have to work on.

I know you are all extremely busy, but I would greatly appreciate it if you had some time to talk about Team Build. I can be reached at jeff levinson at comcast dot net (no spaces obviously) :).

Jeff

JeffLevinson1 at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
Sure Jeff - I'd be glad to help. Sorry for the delayed reply but I was on vacation for the past week and a half. You can reach me on my display email (just remove the "msdn" in the website)
Anutthara at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4

Anutthara wrote:
Hello Jeff - You need to have either VSTT (Visual Studio Team Test edition) or VSTS installed on the build server for tests to run as part of build process.

The other 2 warnings that you have posted have nothing to do with the tests, these must be compiler warnings.

Thanks for using Team Build! Please let me know if you need any other info.

-Anu

Hi Anu,

First I would like to say that you have been very active responding to all the queries regarding team build and corresponding areas, and many kudos to you for that. Now the question:

I am using my TFS server (it has VSTS installed) as my Team Build server as well. But, I do not have VSTT installed on that server. I still get the error when I try to run tests with my builds as posted in the original post entry. And, as you said you need either VSTS or VSTT, it should work. What gives?

Thanks,

rupakg at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5

Thanks Rupak!

When you say you have VSTS installed on your machine, do you mean you have the Team Suite - Enterprise edition? If you have that, you will be able to run tests on that machine. Perhaps you have just the TFS install on the machine. A good way to check if you have testing support on your machine is to open VS, goto File->New. Check if there is a test project type supported and that you are able to create a test project. Another alternative is go to Help->About and paste the list of all the installs listed in the box - Test SKU must be listed in that.

Please let me know if you have any other q.

Anutthara at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 6

Hi Anu,

I have a single server deployment scenario for TFS. My server has only TFS installed but all other dev machines have Team Suite installed. My problem is that my TeamBuild server is the same as the TFS server (which does not have VS Test version), so when I build my solutions, I cannot run my tests along with my build.

Is it required to install the whole Team Suite on the Team Build server to be able to run my tests alongwith my builds?

Thanks,

rupakg at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 7
Yes, you will need to install at least VSTT (VS Team Test) SKU on TeamBuild server in order to run tests along with builds. You can install the complete VSTS if you would like, and it will install all VSTT components.
NagarajuPallaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 8

I'v installed the "Team System Developer Tools" form the "Visual Studio 2005 Team Edtion for Software Developers". And it now runs my Unit test.

Before that I got the "Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build."

PS: I'm running the RTM of TFS.

Thomas

ThomasJespersen at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 9

Just a follow-up:

As I stated installing "Team System for Software Developers" help me get the TFS running Unit Tests. But I still get some warnings in the BuildLog.txt file, because I don't have all the Test Tools installed.

Specifically I get warning that the following files are not accessible.

Microsoft.VisualStudio.QualityTools.LoadTestPackage
Microsoft.VisualStudio.QualityTools.LoadTestPackage
Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip
Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip
Microsoft.VisualStudio.QualityTools.LoadTestPackage

I guess, I get these errors, because my Client is running Team Suite.

How can I get rid of these warnings? I don't use these modules.

If I install Team Suite Trial on the server.... what will happen when this expires?

Thomas

ThomasJespersen at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified