team-build

TFS 2010 Linked Files failing the build

情到浓时终转凉″ 提交于 2019-12-24 13:26:31
问题 I have a two Visual Studio 2010 solutions - one contains 4 files in a class project, the other has links to those files via the "Add as Link" (also in a class project). These solutions both build and run on my machine without any issues. I have checked these solutions into TFS and created a build definition which is configured to build both of them (the one with the actual files first if that matters). However, when I run the build it fails saying that "The type or namespace name

TFS Team Build Log Unit Test Results

你。 提交于 2019-12-23 17:26:11
问题 We're using TFS 2010 Team Build which automatically runs our unit tests during the build process. If I click on View Log, I can see the list of tests run and each test result (Success/Fail). In the event of Failure, I want to see the test result output (so the developer can figure out what the cause of the failure is). Just running the unit test locally isn't enough because the issue could be environmental (if the test is failing because of some data, server, or physical path). How can I

Where is the TFS 2010 “main” build log?

本秂侑毒 提交于 2019-12-23 10:26:52
问题 I'm trying to track down some problems with unit tests in a test TFS 2010 build. The overall log file reports an error being returned from MSTest, but the only log files I can find, the log files for the individual projects being compiled, indicate no problems. Where can I locate the "main" log file that is used to generate the build report? 回答1: As far as I can tell, the build log is just kept in the database and is not written out to disk. 回答2: After the build has run, you can view the

How can I get unit tests to run as part of a TFS2008 build?

我与影子孤独终老i 提交于 2019-12-22 12:18:25
问题 I'm trying to get my continuous integration setup to run my unit tests for me, so I've set <RunTest>true</RunTest> And I've setup the tests to auto-discover: <ItemGroup> <TestContainer Include="$(OutDir)%2a.Test.dll" /> </ItemGroup> Running the build on my development machine runs my unit tests, and reports that the Build succeeded; When run as an automated build, the tests run (according to the BuildLog), but I'm seeing this in the log: Publishing results of test run tfs_service@TFS-BUILD

How to associate a Build to the test plan in Microsoft Test Manager (MTM) 2010?

那年仲夏 提交于 2019-12-22 09:15:23
问题 I am new using Microsoft Test tools, please help: When trying to run a test case from MTM, I am receiving the following warning message: Cannot create automated test run. A build associated with the active test plan is required to submit an automated test run Background info: I have created a Build definition in VS 2010 I have created a Build service host with Agents:Controller and Agent When I open MTM>Testing Center>Properties Build Configurations I can see my build definition selected in

How to chain TFS builds?

狂风中的少年 提交于 2019-12-22 01:38:04
问题 I have a scenario where I want to call one TFS build from another, the first one does the build and the second one does staging. This will allow me do multiple custom staging for the same solution. I know, I can pull this off with an exec task in the second build and call tfsbuild.exe to queue a build from the first build definition. But was wondering if someone knew of a better way? 回答1: It depends what you are trying to do. 1) Do you want the build + staging to run as one operation? So that

TFS2012 Build Service offline

北战南征 提交于 2019-12-21 17:48:42
问题 I configure TFS2012 team build. During the configuration the build service showed status running and little later (may be 10seconds) build controller and build agent service get stopped. But in manage build controller window, my TFS2012 controller and agent shows available. So i triggered a build definition configured for this controller, even after 5 mins in shows "Running for 0 Seconds" and waiting in queue. In event viewer log i could see the below error logged: WebHost failed to process a

TFS build, one build for many branches

旧街凉风 提交于 2019-12-21 04:19:08
问题 We use TFS source control and have two build controllers (one VS2010 the other VS2012). We use the default build workflow template bar a few custom changes. As we have many branches, how would we go about changing the workspace based on the desired branch? I was thinking of adding a parameter for the branch ( $\oursourcecontrol\branches\main ) and then just passing it as a variable in to the get workspace part of the workflow. Or is there a better way of doing it? 回答1: You currently can't and

Assert.Inconclusive and IgnoreAttribute

孤街醉人 提交于 2019-12-21 03:15:23
问题 What is the right way to use Assert.Inconclusive and IgnoreAttribute in MS Unit test framework? We are using Assert.Inconclusive mainly for tests which are: Not implemented yet Somehow broken or incomplete = requires futher attention When test body is for any reason commented out We are doing this because: Inconclusive test can have message We want to see such tests in test results on TFS Our problem is that Inconclusive tests are marked as error in both TFS and Resharper. If we use

How do I deploy using MSDeploy in Team Build 2010 using the WMSVC service and NTLM authentication?

北慕城南 提交于 2019-12-20 08:48:48
问题 I am trying to deploy using Team Build 2010 to a Windows Server 2008 R2 web server. My build server agent is setup to run under a Windows domain account. I have successfully given this domain account permissions on my web server for the deployment using the IIS Manager permissions. This account is not an Administrator on the web server. I can get the build deploying just fine using the following parameters: /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False