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?
Please sign in to leave a comment.
Nick,
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?
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.
I am integrating by using the Gallio MsBuild Task in an MSBuild step;
ie. <Project DefaultsTargets="BuildTests" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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);">
</MSBuild>
</Target>
<!-- Runs Tests -->
<Target Name="RunTests" AfterTargets="BuildTests">
<ItemGroup>
<TestFile Include="../../bin/FunctionalTests.dll" />
</ItemGroup>
<Gallio IgnoreFailures="true" Files="@(TestFile)"
ReportDirectory="TestOutput\Report"
ReportTypes="Html-Condensed;xml">
<Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
</Gallio>
<Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />
</Target>
</Project>
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