TeamCity Integration Example

Feb 7 at 7:39 PM

Is there example available for TeamCity integration? I see that its supported, but I'm not sure how to configure it.

Feb 7 at 7:53 PM

It's actually quite simple if you check the command arguments for the console runner.

c:\MyProject>packages\Chutzpah.1.3.1.1\tools\chutzpah.console.exe MyProject\spec /teamcity

Or in an MSBuild project:

<?xml version="1.0" encoding="utf-8" ?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Chutzpah" ToolsVersion="4.0">
    <PropertyGroup>        <ChutzpahPath>..\packages\Chutzpah.1.3.1.1\tools\chutzpah.console.exe</ChutzpahPath>        <TestSourcePath>spec</TestSourcePath>    </PropertyGroup>        <Target Name="Chutzpah">        <Exec Command="$(ChutzpahPath) $(TestSourcePath) /teamcity" />    </Target></Project>

(Sorry for formatting - Insert Code Snippet seems to be broken in Chrome)

Coordinator
Feb 7 at 7:54 PM
Edited Feb 7 at 8:03 PM

That is correct.  The nice thing is that you do not even need to set the /teamcity flag.  It can automatically detect that it is running inside of teamcity.

Feb 7 at 7:59 PM

Very cool, thanks! I just started playing with Jasmine today, and I'm glad to see there are Visual Studio/TeamCity friendly tools available.

Coordinator
Feb 7 at 8:04 PM

I am glad you are trying it out. I look forward to hear you thoughts and possibles ways to improve.