TeamCity MSBuild Gallio NCover Reports

I am a complete newbie to the build system. I have been playing with this for about two weeks, and I just can’t crack it, I think I have reached the point where I need fresh eyes. Ultimately, I'm going to get a new NCover coverage report (at least a summary) in my TeamCity build project.

I tried all kinds of things, some kind of demo I found on the Internet, Extras from the NCover guys and read so much that I am very confused! I have the following task in my MSBuild script:

<Target Name="TestCoverage">
    <Message Text="Test Assemblies @(TestAssemblies)" />
    <Gallio RunnerType="NCover" 
            IgnoreFailures="true"
            Files="@(TestAssemblies)"
            ReportDirectory="Reports"
            ReportTypes="xml"
            ReportNameFormat="gallio_cover"
            RunnerProperties="NCoverCoverageFile='$(MSBuildProjectDirectory)\Reports\codecoverage.xml'; 
                              NCoverArguments='//w %(TestAssemblies.RootDir)%(TestAssemblies.Directory) CoverageExcludeAttribute //ea //r:Local'" >
        <Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
    </Gallio>
</Target>

The error message that I see in the gallio_cover.xml report that is being generated:

<logEntry severity="info" message="Connected&#xA;Profiled process terminated. Profiler connection not established." />
<logEntry severity="error" message="Host process exited with code: 1" />

I have disabled loading material from the last post.

I have seen so many different examples of how this "should be done" that I cannot trace the problem with how I call NCover via Gallio.

.

,

.

+5
1
+2

All Articles