Typemock - Worth the money? [closed]
Asked Answered
S

4

22

I know that this is a subjective question...

Typemock is $799 per developer. Licences for 5 devs comes up to a pretty large sum. If someone here used Typemock and given that there are open source mocking frameworks, is it worth the money? Why?

Suggs answered 7/6, 2010 at 20:8 Comment(3)
I evaluated Typemock. I just don't do enough testing for it to be worthwhileIciness
I've had a great deal of success with Rhino.... it works great.Schizothymia
Perhaps it's worth rephrasing this to ask what features TypeMock provides that open source mocking libraries don't - that's a question that can be answered at least semi-objectively.Pachston
S
24

In our project we had 12 Typemock licenses that we had to annually upgrade, but I believe it was worth every penny (actually øre) we spent.

Why? Typemock Isolator has one important advantage: it does not set (almost) any constraints on the code you need to mock. Private constructors? Sealed classes? Static classes? No problem - you can isolate all this stuff using Typemock.

Just an example: you need to test the code that handles SqlException with certain properties, how can you do this? SqlException is a sealed class with non-public constructor. You can come with various workarounds, but as long as you're using managed code, there is no direct way of mocking SqlException.

Typemock Isolator intercepts your code as a profiler, it goes unmanaged, so it opens for much more powerful mocking. And if you're dealing with certain product (e.g. SharePoint) then Isolator is the only framework that can handles it, because as somebody put it, SharePoint is just a bunch of private sealed classes.

Having said that, because of its power Typemock Isolator requires developers to care more about testability of their own code. Using Isolator is easier to write non-testable code and still manage to test it with Isolator (sounds contradictional I know). But assuming you got your own code right, Typemock Isolator is invaluable tool to fake third-party components, and when I say "third-party" I also mean stuff that comes from Microsoft and that is not always easily testable.

Strachey answered 8/6, 2010 at 8:26 Comment(1)
I tried typemock years ago and it was dreadful and just didnt work reliably to justify the extortionate price tag. However, I am on 7.8 and now it have Suggest working well testing all the routes thru my C# 4.7 code. Now we have moved to dotnet core and waiting for it to support that. Folk will ask why you dont use FakeItEasy which is great, but it would test unexpected paths. Typemock can test the untestable (some folk still dont do TDD). I would have bought it with my own money, and its a dream with resharper.Aneroid
V
7

The subjective part is your analysis of how much time (and therefore, money) using Typemock will save you. It may help to start with how much a developer-hour costs you. $100? In that case, how long will it take before Typemock saves you 8 hours of time?

Probably the only way to make an intelligent decision is to get an evaluation license and do some real testing to see how much time it saves.

Voelker answered 7/6, 2010 at 20:29 Comment(0)
S
6

Let me preface that I use TypeMock on a regular basis at work and I think it is a great product since it can help you test a lot of untestable code with a pretty clean API.

That being said, you might want to take a step back and ask yourself whether the developers are writing good object-oriented code and following good practices, or whether they are just writing evil code which does need heavy duty tools and expertise (see http://googletesting.blogspot.com/2008/07/how-to-write-3v1l-untestable-code.html for more on evil code).

I will be extremely happy the day that our code has evolved (i.e. been refactored) to the point where we don't need a tool like TypeMock Isolator to properly test it.

Soldier answered 19/5, 2012 at 8:27 Comment(0)
F
3

This is possibly not as objective an answer as you'd like, as I do work there, but this is a check list I've been working on.

This is a list of questions you might want to ask yourself when evaluating any one of the current Isolation frameworks out there: http://site.typemock.com/isolation-framework-checklist

Faxon answered 7/6, 2010 at 21:57 Comment(4)
it would be useful is to see some code walkthroughs (a la Pex guys) on your TypeMockTV rather than just 2 guys shooting the sh*t.Suggs
AngryHacker - examples of what?Faxon
examples of how to tackle various problems with the TypeMock Isolator - and showing the code to do it.Suggs
I would like to see some examples too. I just got your book, Roy, but I am still having trouble figuring out where mocking might fit into our system. All the examples out there I have seen are trivial.Patti

© 2022 - 2024 — McMap. All rights reserved.