Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typemock - Worth the money? [closed]

Tags:

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?

like image 350
AngryHacker Avatar asked Jun 07 '10 20:06

AngryHacker


2 Answers

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.

like image 99
Vagif Abilov Avatar answered Dec 01 '22 00:12

Vagif Abilov


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.

like image 40
Adam Crossland Avatar answered Nov 30 '22 23:11

Adam Crossland