Two questions on Team Builds  
Author Message
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Q1: How I can delete build from TeamBuildTypes folder I guess I can't edit build in visual editor after it's created... Never mind - I found the answer on this one (Version Control is micromanaging...)

Q2: When I am running through Create Build Wizard - as soon as I get to the options it won't let me proceed untill I uncheck "Run tests" checkbox. Why It allows me select proper test metafile but I can't see anything or edit in test list listbox and Next button is disabled...



Visual Studio Team System20  
 
 
olgaF





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Q1: You shoul delete appropriate folder in Source Control from $/<your_project>/TeamBuildTypes folder.

Q2: Do you have some test configuration under Source Control in your project


 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

I have a test project and it has this vsmdi metafile in Source Control. Wizard allows me to select it from Test metadata file dropdown list (in fact - it's the only item in there). But checking "Run test" checkbox disables Next button right away!


 
 
swaham





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

When you select the vsmdi file from the drop-down, the testlists contained in your vsmdi should show up under Test list to run. Only after you have selected what tests you want to run, does the Next button get enabled.

Does your test metadata file contain testlists and tests Make sure that the tests in your testlist are not all disabled or filtered out.

Swaha


 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

I have 80 tests, they are fine and I can execute them from test runner... They are in separate project and vsmdi file is added to the solution items.

 
 
swaham





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Can you open your vsmdi file manually and check that the path of the test assemblies are correct

Swaha


 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Ok, here is my vsmdi file - what should I look for


< 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">8c438stb-12c1-4327-a29f-aax96a61bffb6</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">abbe0956-855a-4680-9656-e43db46b724b</id>
<name type="System.String">Local Test Run</name>
<storage type="System.String">localtestrun.testrunconfig</storage>
<type type="System.Type, mscorlib">
Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration</type>
<enabled type="System.Boolean">True</enabled>
</runConfiguration>
</TestCategory>
</Tests>


 
 
swaham





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

It looks like your vsmdi file is corrupt. The <storage type> tag should show the path for your test assembly for your test named Local Test Run, and this doesn't look like a valid path to me. An example of what it might look like is

<storage type="System.String">d:\stproj\helloworldproject\helloworldtest\bin\release\helloworldtest.dll</storage>

Can you edit the path to point it to your test dll and then see if the test shows up on your test list in the Wizard

Swaha


 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

OK, I'll try. But what about different builds What if I will build aplpication in debug mode An even worse - what if test will be supposed to be run by automated build somewhere on the server I can not change this path all the time...


It didn't help actually.

I found this post - http://blogs.vertigosoftware.com/teamsystem/archive/2006/03/01/2348.aspx
It says that it won't show test list which you can't create with VSTS Developers edition. Does this look llike a case

 
 
swaham





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Using a relative path instead of an absolute path might work for you.

Swaha


 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

I guess I can use ../TestProject/bin/debug/TestProject.dll
How can I relate to different build types Is there any variable config file could understand

Anyway - I tried to put path there and it didn't help. Check my previous post - I found an article which says that test list has to be created with VSTS Test Edition.


 
 
Buck Hodges





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Unfortunately, I am pretty sure you are correct that you will need to use the Tester role to create the test list, since you say that there are no tests listed in the wizard.

Buck



 
 
laboremus





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

Is there are any plans to bring list-creationg functionality in the Developers edition in v.2 Or at least automatically generate default llist which includes all the tests (so I would be able to fix it manually)


 
 
Buck Hodges





PostPosted: Team Foundation Server - Build Automation, Two questions on Team Builds Top

The only thing I can say is that it has gotten attention and is being discussed.

Buck