teamcity

Configuring code coverage report for Karma on TeamCity

烂漫一生 提交于 2019-12-03 11:14:59
问题 We are setting up TeamCity to run our jasmine tests using node and karma. The tests run fine and results are reported under the "Tests" tab in TeamCity. However we would like to report code coverage in TeamCity (and even set Build Failure Conditions on the level). I have installed the karma-coverage module npm install karma-coverage --save-dev And tried to configure it in karma.conf.js by adding preprocessors: { 'myProject/Scripts/app/**/*.js': 'coverage' }, reporters: ['progress', 'coverage'

To where should I point the VCS root of TeamCity?

自古美人都是妖i 提交于 2019-12-03 11:07:12
问题 I am setting up TeamCity and I am wondering what should be used as the VCS Root. My svn repository is located at http://obfuscatedserver/svn/main/MyProject1/ Should I set the VCS Root at http://obfuscatedserver/svn/main/MyProject1/ or use the trunk folder at http://obfuscatedserver/svn/main/MyProject1/trunk/ ? Right now I am not using the trunk folder and I had to set the Build Runner "Build file path" setting to "trunk/MyProject1.proj" (using msbuild). Which location is the appropriate one?

How to get TeamCity to run tests using MSTest?

南楼画角 提交于 2019-12-03 11:00:39
问题 I am trying to figure out how to make TeamCity run my MSTests. I have setup a build step using the following parameters: Path to MSTest.exe: %system.MSTest.10.0% List assembly files: Projects\Metadude. .Tests\bin\Debug\Metadude. .Test.dll MSTest run configuration file: Local.testsettings However when this step runs, it does not execute any tests. This is the output from the log: [02:13:49]: Step 2/2: Run Unit Tests (MSTest) [02:13:49]: [Step 2/2] Starting: "D:\Program Files (x86)\TeamCity

How to get MSTest to find my test data files?

五迷三道 提交于 2019-12-03 10:43:28
问题 I have a few tests that need to be fed with external data from excel files. The files are included in the test project, and in Visual Studio, I have edited the test settings file (Local.testsettings) to deploy the data files. This makes it work fine i VS. We are, however, also running continous integration with TeamCity, and in TeamCity this doesn't work. My data files are unavailable to the test. Seems that the tests are run from a temporary folder named "C:\TeamCity\buildAgent\temp\buildTmp

TeamCity pending changes are not run

纵然是瞬间 提交于 2019-12-03 10:34:19
I have got configured TeamCity to execute NUnit tests. When I run manually it then it is working fine. But somehow it acumulates pending changes and doesn't run test even if I refresh overview page of TeamCity. I am wondering which setting I have to use so pending changes will run? Basically I would like to start first pending changes to execute as soon as it appears. Thank you! It sounds like you are missing your build trigger. When you edit the project settings, you should see the Build Triggers step (#5). It's the spot where you need to add the event that tells TeamCity it should kick off a

How to cleanup old Failed Builds in TeamCity?

痞子三分冷 提交于 2019-12-03 10:22:00
We do have hundreds of failed builds in TeamCity (number is especially high because of old retry on fail settings) and now it's a pain to browse history. I want to clean up only old failed builds, is there anyway to do that in TeamCity? Normal clean-up policy only allows X days before the last successful build sort of clean ups. I tried to find a "delete build history record" but I couldn't find one. That doesn't prove it isn't there, but it it was, it would be an opportunity for devs to abuse it as some PM's use the history as a metric that may say something about code quality. If we could

Visual Studio required to run MSTest test on Team City Build Server?

冷暖自知 提交于 2019-12-03 09:59:20
问题 We are setting up a Team City build server. On previous VS 2008 projects a full version of Visual Studio has been installed on the build server. We are now starting a VS 2010 project. Is it possible to run MSTest tests on the Team City build server without installing Visual Studio? 回答1: Download the Visual Studio Agents 2010 ISO: http://www.microsoft.com/en-us/download/details.aspx?id=1334 Mount/Extract the files and copy them to the agent server Run AutoRun and select to install Microsoft

Microsoft Code Contracts without Visual Studio

一个人想着一个人 提交于 2019-12-03 09:45:11
问题 This stack overflow question: Microsoft Code Contracts and CI build server asks how to get code contracts working on a build server without installing Visual Studio 2010. We're trying to do the same. We've followed the steps outlined in the accepted answer, but haven't been able to get it working. CodeContracts will not install on the build server unless Visual Studio is present. So following the suggestion, we've done the following: We copied the contents of %programfiles%\Microsoft

Integrating GitLab with TeamCity

痴心易碎 提交于 2019-12-03 09:38:18
问题 Since GitLab 7.6, or thereabouts, there is a new option to use TeamCity directly from GitLab projects. In the setup there is this message: The build configuration in Teamcity must use the build format number %build.vcs.number% you will also want to configure monitoring of all branches so merge requests build, that setting is in the vsc root advanced settings. I'm not sure how this works. Lets say I have a repository Foo. I have setup a build on TeamCity to listen to Foo with branch

How can I run all NUnit Tests in Team City?

最后都变了- 提交于 2019-12-03 09:36:45
We are using TeamCity 6.0 to build VS C# solutions each commit. Once the build is complete, a different test TC project runs. So that developers can add/remove/edit VS unit test projects, how can I make TeamCity use the the sln file or search for test dll's? I don't want to have to edit the build each time a new test project is added to the VS solution. Run tests from: **\*Test*.dll Doesn't appear to work, it only get s the first Test (which is currently failing) Fixed :) - RTFL (Read the log!) Run tests from: **\bin\debug\*Test*.dll 来源: https://stackoverflow.com/questions/5646598/how-can-i