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
Can anyone help me to run mocked test in CruiseControl.Net ?
asked by Gmoorick (2.3k points)

13 Answers

0 votes
Hi Mikko

According to cc.net documentation this is the intended cc.net behavior
The <tasks> section is intended for build tasks, such as a NAnt Task or MsBuild Task. If any of these build tasks fail, no further tasks in this section will be executed


You can workaround this by running both runs using MSBuild task.
in MSBuild xml file you can use the ContinueOnError property which is what you're looking for.
Example:
<Exec ContinueOnError="true" $(TMockRunner) $(NUNIT) ..... 
<Exec ContinueOnError="true" $(NUNIT) ..... 


Hope it helps :)
answered by ohad (35.4k points)
0 votes
Tried to use the plugin from above (ccnet.TMockRunner.plugin.dll), using the following syntax

<TMockRunner>
<nunitPath>nunit-console.exe</nunitPath>
<runnerPath>tmockRunner.exe</runnerPath>
<assemblies
<assembly>bik.functionalTestsindebugik.unittests.dll</assembly>
</assemblies>
</TMockRunner>

taken from: https://www.typemock.com/community/viewtopic.php?t=380

but receive the following error:

errorMSB4067: The element &lt;nunitPath&gt; beneath element &lt;TMockRunner&gt; is unrecognized.

Has anyone else run into this error, and if so, how did you resolve? if not, what other information could I provide that would be helpful in assessing the issue? Thank you,

-J.
answered by jdivis (1.3k points)
0 votes
Hi,

I noticed the assemblies tag name is not closed (missing '>'). Is it possible that this is what causes the error?

Best Regards,
Elisha
Typemock Support Team
answered by Elisha (12k points)
...