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
0 votes
How would I call Mocking_on.bat from an Nant Build File.
I do not want to call tmockrunner.

Thanks.
asked by nm95ab (1.2k points)

5 Answers

0 votes
Hi,
:?: Just out of interest, why don't you want to use TMockRunner?

In any case, running mocking_on.bat from within Nant won't work, as the environment variables are set in another process.
:idea: You can manually set these variables using the technique described in the following blog by Ian MacLean: Setting Environment Variables with NAnt

Of course you might perfer a typemock task, this can be added as a feature request.
answered by richard (3.9k points)
0 votes
Richard,

I'd definately appreciate a TypeMockTask.

Has this submitted as a feature request?
answered by IUnknown (180 points)
0 votes
Hi,
This feature is on our list although it is not implemented yet.

Another way is to run mocking_on before runing NAnt.
answered by richard (3.9k points)
0 votes
Any updates on the TypeMock NAnt Task?

What would be required for someone else to write it?

My need isn't critical but in the next six months we are going to release a new version and I have to run daily overnight Unit tests with TypeMock which are very extensive.

I'd prefer not using the nunit-console to run them
answered by stemarie (760 points)
0 votes
A perfect example of looking before you ask, I found it in another post, thanks
answered by stemarie (760 points)
...