TypeMock / MSTest

I'm using an MSBuild script to run our MSTests using TypeMock. It executes the tests, but I don't get the realtime updates or test reports at the end of the process like I get when I just use straight-up MSTest. How can I get that same experience when using TypeMock?

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="RunTests" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">     <UsingTask TaskName="NCover.MSBuildTasks.NCover" AssemblyFile="C:\Program Files\NCover\Build Task Plugins\NCover.MSBuildTasks.dll" />     <Import Project ="C:\Program Files (x86)\Typemock\Isolator\6.1\TypeMock.MSBuild.Tasks" />     <PropertyGroup>          <MSTest>"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe"</MSTest>         </PropertyGroup>     <Target Name ="RunTests">          <TypeMockStart Target="3.5" />          <Exec ContinueOnError="true"  Command='$(MSTest) /noisolation "/testcontainer:C:\continuousintegration\root\CTM_VPOFFICEClassLibraries\CTM.VPOffice\CTM.VPOffice Unit Testing\bin\Release\CTM.VPOffice Unit Testing.dll"' />          <TypeMockStop />     </Target> </Project>

3 comments
Comment actions Permalink

The same is when you use Command line step and run custom script tmockrunner.exe mstest.exe /testcontainer:BinaryWithTests.dll
Step is executed, in build log there are a list of tests executed but no test summary like in mstest step.
It seems that MSTest report watcher not running after step execution.

0
Comment actions Permalink

Hello,

Please sorry for delays in answering.

There is a documentation page for MSTest here:
http://confluence.jetbrains.net/display/TCD8/MSTest+Support

Please find in the doc on how to publish .trx report file into TeamCity to let it report contents:
http://confluence.jetbrains.net/display/TCD8/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ImportingXMLReports

0

Please sign in to leave a comment.