chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi All,
I'm trying to configure TypeMock to run with CruiseControl using NAnt and NUnit, and I've everything builds correctly now. However, since Typemock requires NUnit to be run as a exec task, now whenever a test fails, the Error section of the webdashboard is display differently as before.
eg. Before Typemock and running Nunit as NUnit2 task the error looks like:
Errors: (1)

Tests Failed.

After using Exec task to run Nunit the error output looks like:
Errors: (2)
C:CI_Toolsdefault.build(684,14):
External Program Failed: C:CI_ToolsNUnit 2.4.7in unit-console.exe (return code was -100)
NUnit Test(s) failed in assembly: epservices.vpo.DocManagement.Controllers.

Is there a way to format the error output like it was before? I mean there's really one error, however, the way the output is parsed makes it appear to be 2 errors. Are there any XSL template file to parse NUnit errors correctly when running in a exec task?

Thanks a lot for the help!
asked by ep_hwong (1.1k points)

2 Answers

0 votes
Not sure if this will help, but I've got a blog post describing how to get this working in MSBuild here:
http://www.paraesthesia.com/archive/200 ... build.aspx

I've done it in NAnt but don't have any code for it right now. The general pattern is the same either way. If you're not using NCover (which I am in the example), then you can pretend that the NCover task in the example is your Exec task and use the "CommandLineExe" and "CommandLineArgs" as the respective parameters in the Exec task.
answered by tillig (6.7k points)
0 votes
In the following link you can find more information on using nUnit and Typemock
answered by Moran (140 points)
...