teamcity

Ant and Junit: no xml report being generated

青春壹個敷衍的年華 提交于 2019-12-10 11:04:56
问题 I'm very new to ant and junit. I need junit to create an xml output so I can integrate with team city. The tests run just fine, but I'm not getting any output in the directory that I'm specifying. I'm running on windows 7. I have junit.jar and ant-junit.jar in my ant_home/lib directory. here is my build xml target: <target name="onlyjunit-sikuli" description="Execute All sikuli tests"> <delete dir="${automated}/results/sikuli"/> <mkdir dir="${automated}/results"/> <mkdir dir="${automated}

How to run e2e tests in teamcity, How to run the server in the background and run e2e

拟墨画扇 提交于 2019-12-10 11:02:11
问题 How do a run the servers I need as well as the e2e tests in a teamcity build step(s)? I have protractor e2e test for my angular 2 application. (I have a funny mix of angular-cli and gulp, but bear with me.) Here's how I run my tests locally . I need three console windows (w1,w2,w3). w1) First thing I need to do is start my application: npm start -> Which I have defined in package.json as ng serve -prod w2) Then start the fake back-end, an express webserver npm run gulp e2e-server -> I've

Can you configure TeamCity “Artifacts” to be checked back into source control?

左心房为你撑大大i 提交于 2019-12-10 10:28:05
问题 I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving this with TeamCity? 回答1: The two ways I can think of are VCS Labeling specify a path in your working directory to label and the location relative to the trunk

How to access teamcity configuration parameters in MSBuild unit tests

ⅰ亾dé卋堺 提交于 2019-12-10 09:28:45
问题 Is there a way to access configuration parameters within MSBuild unit tests? I have teamcity configured to run lengthy test set every couple of hours. Every now and then I want to run test with specific parameter (string restricting sample test set). Instead of checking in change to unit test I would like to click "Run..." in team city and set a value to some parameter. Is this possible? 回答1: One possible solution is to set an environment variable from a build parameter in teamcity and then

Attribute filter syntax for code coverage in TeamCity

好久不见. 提交于 2019-12-10 03:26:40
问题 Anyone knows the syntax for excluding code from coverage in Teamcity? I am using the ExcludeFromCodeCoverageAttribute on certain methods and want those excluded. It works well in Visual Studio but I don't understand how to get the same behavior in TeamCity. The Field I am trying to configure is located in MsTest -> .Net Coverage -> Attribute Filters: I have tried this: -:ExcludeFromCodeCoverageAttribute and this -:ExcludeFromCodeCoverage 回答1: After trying out a few variations this worked: -

pycharm debug console unreadable because of teamcity

允我心安 提交于 2019-12-10 03:09:01
问题 Since a few days my pycharm debug console is systematically polluted by teamcity infos, e.g. when i want to print out a variable value, the following will be displayed: >>> df ##teamcity[testStdOut timestamp='2017-11-02T15:55:00.670' flowId='test_pricing_36_weight_provider.TestPricing36WeightProvider.test_add_weights' locati... Any hint how to deactivate this teamcity thing ? 回答1: This is a PyCharm/IntelliJ bug. PyCharm replaces stdout with its own object. They do a bunch of screwing around

TeamCity: Best Practices to deploy produced installers (artifacts)

风格不统一 提交于 2019-12-10 01:00:52
问题 We got a TeamCity server which produces nightly deployable builds. We want our beta tester to have access these nightly builds. What are the best practices to do this? TeamCity Server is not public, it is in our office, so I assume best approach would be pushing artifacts via FTP or something like that. Also I have no clue how to trigger a script when an artifact created successfully. Does TeamCity provide a way to do that? 回答1: I suggest you start looking at something like (n)Ant to handle

Is it possible to configure TeamCity to use the MSBuild that ships with Visual Studio 2015?

二次信任 提交于 2019-12-09 14:47:53
问题 I'm attempting to build an ASP.NET vNext project in TeamCity. When it tries to build, I get the following error: C:\...\MyApp.kproj(7, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AspNet\Microsoft.Web.AspNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. The file it's looking for is actually located at C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AspNet

teamcity aes256-cbc error when retrieving git repository

六眼飞鱼酱① 提交于 2019-12-09 14:41:02
问题 I've just installed Teamcity 8.0.3 on a fresh Windows Server 2012 machine. Installation was successful, and I'm trying to configure an agent in order to fetch a project stored in a git server. This server uses a ssh key. I've added it to my agent, but when it tries to retrieve the project this error appears. Failed for the root 'rtogit' #1: List remote refs failed: com.jcraft.jsch.JSchException: The cipher 'aes256-cbc' is required, but it is not available. I've seen, for example here that I

DotCover in TeamCity 8 doesn't work

不羁的心 提交于 2019-12-09 14:32:49
问题 I try to run dotCover with my NUnit tests, in the TeamCity 8 as a build step. But no metter what I try I always get the same error in the log file: Step 4/4: Coverage (NUnit) (1s) [Step 4/4] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit [Step 4/4] in directory: C:\TeamCity\buildAgent\work\6aee0f0d2626793d [Step 4/4] ##teamcity[importData type='dotNetCoverage' tool='dotcover' file='C:\TeamCity\buildAgent\temp\buildTmp