Gallio integration questions

I'm setting up a EAP version of Teamcity for a build server.  I didn't think it had any official Gallio integration, ie no fancy pants plugins like nunit.  For some reason or another I looked in %BuildAgent%\plugins\dotnetPlugin\bin and saw a gallio directory.  And a JetBrains.TeamCity.Gallio.Generator.exe.  Is this just used when Gallio submits reports? Or is there some hidden Gallio integration I can leverage?

Comment actions Permalink


No, there is no Gallio support inside TeamCity. The file you see is actually from pre-historic integrated Gallio support for TeamCity times and should be cleaned up by us.

Why would you want support for Gallio in TeamCity? What would you expect it to be?

Comment actions Permalink

Why would I want Gallio support? Because we use Mbunit. And I don't know how to run mbunit tests without Gallio.  Gallio also makes nicer test reports than what I've seen in TeamCity.  But I may not be setting things up correctly.  Also trying to get OpenCover to work for code coverage.  Have all this running from a custom script.

Comment actions Permalink

I am integrating  by using the Gallio MsBuild Task in an MSBuild step;

ie. <Project DefaultsTargets="BuildTests" xmlns="">
 <UsingTask AssemblyFile="C:/Program Files/Gallio/bin/Gallio.MSBuildTasks.dll" TaskName="Gallio" />
 <Target Name="BuildTests">
 <MSBuild Projects="FunctionalTests.csproj" Targets="Clean; Rebuild" Properties="Configuration=$(Configuration);"> 
      <!-- Runs Tests -->

 <Target Name="RunTests" AfterTargets="BuildTests">
 <TestFile Include="../../bin/FunctionalTests.dll" />
        <Gallio IgnoreFailures="true" Files="@(TestFile)"

            <Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
        <Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />

I've only used Teamcity for a few days but it appears to understand the test results and provide reporting as well as the gallio reporting


Please sign in to leave a comment.