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

We have a build environment running under .NET 2.0 using CC.Net 1.0, MSBuild, NCover v1.5.4 and NUnit 2 v2.2.7. We are considering using TypeMock.NET as our mock framework of choice. As part of our investigation we need to ensure that it doesn't break the build environment.

We have come across the following error when trying to run unit tests via MSBuild that are making use of TypeMock .NET:

Test: Sanlam.Messages.UnitTest.MessagesFixture.TestPropertyMessageDecoratedDatabaseMessage
Type: Failure
Message: TypeMock.TypeMockException : *** MockInserter not running, please run 'mocking_on.bat' before running the tests

at TypeMock.MockManager.Init(Boolean collectAllCalls)
at TypeMock.MockManager.Init()
at Sanlam.Messages.UnitTest.MessagesFixture.Setup()

Running the mocking_on.bat doesn't solve the problem. Can you please help.
asked by cjlotz (3k points)

4 Answers

0 votes
You can use TMockRunner.exe to run the tests (See Running TypeMock.NET)
Our next release is going to include MSBuild and nAnt support, I could send you a beta version of this if you want
answered by scott (32k points)
0 votes

A beta would be appreciated. Any idea on how long before the beta goes into release? Does it include documentation surrounding the setup for the new features?
answered by cjlotz (3k points)
0 votes

I think we are running into a similar issue here. Can you tell us when the beta will go into release?

Would it be possible to get our hands on this beta in order to verify it on our system?

answered by kiikay (140 points)
0 votes
This is implemented in version 3.1 (Professional and Enterprise Editions)
with Nantand MSBuildintegration.
answered by scott (32k points)