tfs2015

SpecFlow + VSTS/TFS 2015

[亡魂溺海] 提交于 2019-12-08 03:26:24
问题 Using the new build system in TFS2015/VSTS, my SpecFlow tests aren't getting picked up. Within the same project, classes and methods decorated with [TestClass] and [TestMethod] , respectively, are picked up and tested by TFS. What are the basic requirements for TFS2015/VSTS to run a SpecFlow 2.0 test? EDIT: Adding packages.config contents. As you can see, I have SpecRun installed, and from within Visual Studio, I'm able to run SpecFlow tests as I'd expect (i.e. they all appear in Test

TFS Build 2015 not publishing test results

Deadly 提交于 2019-12-07 22:06:44
问题 UPDATE (I have restructured this question with a new and basic solution and build as the same problem exists there) I'm using the new build system in Tfs 2015 and I'm using Update 1. I have noticed that on the build summary screen, no test results or Code Coverage results are submitted: I have a test step which runs and contains results and I have a .trx and a .coverage file but the test step log contains the warning: ##[warning]Failed to publish test results: The value for the Build.Id

Signing out from TFS and sign in with new credentials

半世苍凉 提交于 2019-12-07 17:55:47
问题 Im working VS 2015 and TFS 2015. By mistake I logged into TFS with a different credentials which is some what unused one. But after that TFS connection manager not asking for new credentials and its using the details I entered first. So based on some search I found we can remove that from Credential manager but unfortunately its not showing anything related to TFS. Also based on another solution I opened integrated web broswer window in VS and opened the TFS page. There its login default with

tfsbuild delete/destroy - founds no builds for build specification

只谈情不闲聊 提交于 2019-12-07 08:18:26
There are 100s of builds left in our build definition indefinitely, regardless of the retention settings: i want to delete builds with scripts, i am trying run from remote PC. our tfs server is 2015.2. tfsbuild destroy /collection:http://tfsserver:8080/tfs/ProjectCollection /dateRange:01/01/2017~31/12/2017 /buildDefinition:teamProject\Builddefintion output shows: No builds found for build specification . even though there are many builds meets the criteria. any help is appreciated. Thanks! Tfsbuild delete/destroy only availabe for Xaml builds. And need to delete first then destroy . For vNext

Can we build multiple gated check-ins in parallel?

若如初见. 提交于 2019-12-07 05:19:15
问题 Assuming we continue to use XAML build definitions for gated check-ins in TFS 2015 because the vNext system doesn't support them, is it still possible to get multiple gated check-ins running in parallel? I know that there is a Parallel option in the Build setup UI but I don't know if it can be applied to XAML build definitions as well, and what other constraints there are. Can you build in parallel on the same box (as long as it supports multiple agents)? 回答1: XAML based gated builds of the

How to configure multiple project in Team Build 2015

半世苍凉 提交于 2019-12-07 04:37:57
问题 How to configure multiple project in Team Build 2015 (using the new task based workflow, not the old XAML builds). Right now I see only one solution can be configured for Visual Studio build task. 回答1: You can easily add more than one build task that explicitly calls a single solution. That will also allow you to control the order that they get built. Just select "Visual Studio Build" from the sea list. This works in Visual Studio Online and TFS 2015. 回答2: As others have mentioned there are

TFS 2015 Build vNext recursive variable substitution

a 夏天 提交于 2019-12-06 21:37:29
Is it possible that the variable substitution is not recursive? Example1: Variable Value SqlInstance (localDb)\mssqllocaldb DbCatalogName FooDb ConnStr data source=$(SqlInstance);initial catalog=$(DbCatalogName)$(Build.BuildId); During the build the connection string substituted to: data source=(localDb)\mssqllocaldb;initial catalog=FooDb3211; This configuration works perfectly. But if i move the BuildId parameter to DbCatalogName variable it won't be substituted. Example2: Variable Value SqlInstance (localDb)\mssqllocaldb DbCatalogName FooDb$(Build.BuildId) ConnStr data source=$(SqlInstance)

Differences between Visual Studio Build step and MSBuild Build step

丶灬走出姿态 提交于 2019-12-06 19:25:21
问题 I'm creating some build definitions and the only difference I see between the Visual Studio Build Step and MSBuild Build Step is that the VS Build Step adds the visual studio version to the build. Somebody can explain maybe more differences? 回答1: They are almost the same just as Daniel mentioned. The main difference is just as what you have found: Visual Studio Build step add Visual Studio Version to the build. Should I use the Visual Studio Build step or the MSBuild step? If you are building

VSTS build summary tab with visible condition or Task dependency

こ雲淡風輕ζ 提交于 2019-12-06 15:44:35
I try to add new custom tab to summary page for build result, but which will be added only for builds with my custom build Task. For example, Task "publish artifacts", only if this task was added, the tab "artifacts" added in summary page. I want the same behavior for my task and tab. For now, I've just added in vss-extension.json, in "contributions" { "id": "build-info-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view", "targets": [ "ms.vss-build-web.build-results-view" ], "properties": { "name": "My Build info", "uri": "infoTab.html"

How do you send a patch request from a c# client?

妖精的绣舞 提交于 2019-12-06 15:01:55
I have a powershell script that does this : $uri = "$($tfsUri)/$($teamproject)/_apis/build/builds/$($buildID)?api-version=2.0" $data = @{keepForever = $keepForever} | ConvertTo-Json $response = $webclient.UploadString($uri,"PATCH", $data) I'm trying to rewrite this in C#, using a Webclient. WebClient client = new WebClient(); client.Encoding = System.Text.Encoding.UTF8; string reply = client.UploadString(url, "keepForever = true"); Console.WriteLine(reply); But I get : The remote server returned an error: (401) Unauthorized. This is TFS 2015 VNext, if that helps. You are missing the METHOD in