开发者

Team City + Gallio runs tests, but results are not shown

We recently updated to Visual Studio 2010, and as part of our upgrade we started using Gallio 3.2 prerelease builds. Everything runs fine in Visual Studio (through resharper) but I'm having problems with TeamCity integration. The tests seem to run during TeamCity builds just fine (our build takes long enough to run all our tests), but the tests are not showing up in TeamCity's test area. Here is the test target from our NANT build file (this hasn't changed in our upgrade at all). Is there a trick to getting the tests to show up in TeamCity or is this someth开发者_运维问答ing that's broken in the latest builds of Gallio?

<target name="runTests">

<gallio

result-property="exitCode"

failonerror="false">

<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />

<assemblies>

<include name="..\Source\Tests\${testProject}\bin\Debug\${testProject}.dll" />

</assemblies>

</gallio>

</target>


Try setting echo-results="true" like this:

<target name="runTests">
<gallio
result-property="exitCode"
echo-results="true"
failonerror="false">
<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />
<assemblies>
<include name="..\Source\Tests\${testProject}\bin\Debug\${testProject}.dll" />
</assemblies>
</gallio>
<fail if="${exitCode != '0'}" >One or more tests failed. Please check the log for more details</fail>    
</target> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜