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

I have the following nant build(nunitTypemock.build) file, taken from example here:
 

<xml>
<project>
   <property>
   <property>
   <property>
  
  <Example>
    <target>
    <Dynamically>
    <loadtasks>
    
    <Load>
    <loadtasks>
    
    <Start>
    <typemockstart>
    
    <Run>
    <ncover>
    <Stop>
    <typemockstop>
  </target>
</project> 


And I have NCover 3.0 installed.

To run an Nant task, I type in

"C:\Program Files\nant\bin\nant.exe" /f:"D:/nunitTypemock.build"


And I got a "return code was -100" error. I looked through the log and it seems that nunit cannot run because of the following exception:

System.NullReferenceException: Object reference not set to an instance of an object
at NUnit.Core.SimpleTestRunner.CountTestCases(ITestFilter filter)


Anything I did wrong?

I use NCover 3.0, instead of NCover 2.0, not sure whether this is the problem.
 

asked by nsoonhui (59.1k points)
edited by Bar

1 Answer

0 votes
Hi Soon Hui,

Let's take this offline - I'll write you from our support mailbox.

Thanks,
Doron
Typemock Support
answered by doron (16.5k points)
...