Hi,
I was investigating
JustMock as I happen to have a licence with other products I've bought. It looks a bit like TypeMock without the recurring costs. I went through the steps below:
- Integrated JustMock with NCrunch (only one step) -
http://www.telerik.com/h...ntegration-ncrunch.html
- Set up a 'project' and a 'justmock test project' in a solution. Used this example (http://www.telerik.com/help/justmock/getting-started-quick-start.html) to paste the code into the project under test and the test project. I pasted in the first 3 tests only (TestMethod, CallOriginal_TestMethod and Throws_TestMethod)
The tests come back with the right results, but on my machine (2012 macbook retina) NCrunch takes around 16 secs to refresh when I make an edit.
When using the VS test Explorer, it took a similar time the first time, but having 'warmed up' or loaded whatever it needed, subsequent 'run all' clicks take about 4 secs of real elapsed time, with the tests themselves only adding to 200ms. NCrunch is 16 seconds, every time.
In NCrunch it's showing some of the Mock creations, eg var order = Mock.Create<Order>(Behavior.CallOriginal, "Camera", 2); is taking 2 seconds.
Is there anything I can do to bring NCrunch's cycle time back in line with the test runner?
Thanks!