index > Team Foundation Server - General > Team Build And Unit Test Problem

Team Build And Unit Test Problem


I want to do is run all the tests in all assemblies, within the context of Team Build. So I need to create a Test List to do it. But in Team Developer I cannot find any tool to create it. So I want to ask a question that only Team Tester and Test Suit can to it.




Eagle
Eagle Tsui

I guess u need the Team Tester or Team Suite edition.

Under the Test menu of VS 2005, select the window "Test Manager", u will be able to create the Test List from there.




limbt
Boon Tiong

My company only has Team Developer licensing. I just saw a Using Team Foundation Build of Visual Studio 2005 Team System Licensing that team developer can do following when build

Developer scripts a build to include any of:

Eagle Tsui
Eagle Tsui wrote:

I want to do is run all the tests in all assemblies, within the context of Team Build. So I need to create a Test List to do it. But in Team Developer I cannot find any tool to create it. So I want to ask a question that only Team Tester and Test Suit can to it.

Eagle,

you won't be able to use Team Build to run any tests without Team Edition for Testers installed on the server.

At least, if you use the default Microsoft .targets and use a vsmdi file and test lists.

I'm in the process of writing a replacement for the default targets and already have the tests sorted so that you can run all the tests in all assemblies using the MSTest executable.

I'll be posting a blog and publicising on these forums as soon as it's ready!

Michael Luke

To add to what Michael said, if you want to run just unit tests on the build machine, you could do that with VSTD installed on the build machine.

Re the other q about test list creation being allowed only in VSTT and not in VSTD, I'll get one of the VSTT team members to give an answer to that.




Team Build|VSTS
Anutthara

You cannot create test list in VSTD but we are working on tools that will make it possible to run tests using test container in Team Build and edit test lists in VSTD.

Thanks,

Bata Chadraa

VSTT

bchadraa MSFT

Hi,

I have the same problem with getting unit tests running during an automated build. The tests run fine on my local VSTD, but when I perform the same build (Debug/Any CPU) on the build server, I receive the following message in the build log:

Starting execution...

C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : No tests to execute.

C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : There are no results to be published.

I only have VSTD installed on the build server, and also don't have a tester version for my local machine (thus, can't create a test list). So, how can I get my unit tests to run? What exactly do I need to specify in the build file? What do I need to inject into my .vsmdi file? The .vsmdi file looks like this right now:

<?xml version="1.0" encoding="utf-8"?>

<Tests>

<edtdocversion branch="retail" build="50727" revision="42" />

<TestCategory type="Microsoft.VisualStudio.TestTools.Common.TestCategory">

<id type="Microsoft.VisualStudio.TestTools.Common.TestCategoryId">

<id type="System.Guid">8c43106b-9dc1-4907-a29f-aa66a61bf5b6</id>

</id>

<name type="System.String">Lists of Tests</name>

<description type="System.String" />

<enabled type="System.Boolean">True</enabled>

<parentCategoryId type="Microsoft.VisualStudio.TestTools.Common.TestCategoryId">

<id type="System.Guid">00000000-0000-0000-0000-000000000000</id>

</parentCategoryId>

<runConfiguration type="Microsoft.VisualStudio.TestTools.Common.Link">

<id type="System.Guid">76825ddc-8a49-4d1f-bfba-1428c97c2d76</id>

<name type="System.String">AiopServer</name>

<storage type="System.String">aiopserver.testrunconfig</storage>

<type type="System.Type, mscorlib">Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration</type>

<enabled type="System.Boolean">True</enabled>

</runConfiguration>

</TestCategory>

</Tests>

I would appreciate any help on this.

Thanks

vito1281

Take a look here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=633401&SiteID=1

- Steve




http://sstjean.blogspot.com
Steve St.Jean

Steve,

Thanks for the link. I had actually come across that prior to my initial post, but wanted to confirm with the product team that this was the only way of enabling unit tests. This seems ridiculous that I need to handcraft the vsmdi file to include a test list. I have a lot of tests, and without automating this process in some way, this would be unusable.

Does anyone know of a tool (a powertoy of sorts, perhaps) that allows us to enter tests into the vsmdi file w/out a Test Manager?

Thanks

vito1281

Or better yet a way to tell the build to "run all tests in the solution" so the devs can keep adding them and they will automatically get into the build.

- Steve




http://sstjean.blogspot.com
Steve St.Jean
Absolutely! I just thought that would be too much to ask for given the current situation. :) j/k
vito1281

reply 11

You can use google to search for other answers

 

More Articles

methods listing the contents of the repository
Delete Custom Work Item Type
Allowing team members to create Team Builds
Path, Files and Namespace length limitation in TeamBuild?
TF Beta 3 Compatible with VS 2005 RC1 ?
Work Item as defect tracking system
Error 28004.Error service account is not valid
Modifying canned reports
HOWTO: Customize the Bug that Team Build creates on Failure
Using Team Build to Publish WebSites
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Unique id per workitemtype
Relationship between projects and source…
TF output not conducive to efficient use…
Recursive Copy within Team Build
Beta TFS MSSCCI plugin now available for…
Bug Reports in RC not working
Database Update Failure - PK_tbl_Pending…
Suggestion: Add Version Number to Chang…
Files Versioning
Rename VSTS Project
When does Hatteras read in the Testing P…
Possible to Sort a picklist?
Team Projects vs. Source Control
Team Project creates only top-level sour…
Branch Or Label?

Hot Articles

TFS Pricing
circular loop bug in compare tool??
Web Gui Front End?
Installing Team Foundation Server Beta 2
Assign Work Item to multiple people?
Interception of work item events: How (i…
CAL Clarification
How to use team build to build a web set…
how to control module level security…
Team Explorer doesn't support filenames …
Process Templates - Check-In Policy / Bu…
Using WorkItemType, State, etc. in Event…
Source Control Tree
http://localhost/reports - The page cann…
The node specified is not found in the c…

Recommend Articles

Re: New report
Unique id per workitemtype
Team Foundation Web Services
SQL Server collation: Latin1_General
Team Foundation Service Error
TFS in a workgroup
Is shelving broken in TSF Beta 3 Refresh?
Custom Check-In Policy: Time That Task
MS Project 2003 Dates not retrieved from…
Cant start a build
Remote Access to TFS
Error 'Insufficient memory to continue t…
Query for Custom Report?
Help Our Version office 2003 seems to ha…
Re: 3 of 4 project alerts works