As we have already seen the basics of Mock framework, let's look at some of Mock frameworks that are available and understand what they do or don't support.
NMock
Software License |
Apache License 2.0 |
Last Active |
Jul-2011 |
Latest Version |
NMock3 |
Supported .NET Version |
.NET 4.0 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
No |
Mock Legacy Code |
No |
Auto Recursive Fakes |
No |
Fake Dependencies |
No |
Url |
http://nmock3.codeplex.com/ |
TypeMock
Software License |
Commercial |
Last Active |
Jul-2013 |
Latest Version |
Isolater 7.4.1 |
Supported .NET Version |
.NET 4.0 |
Build Server Integration |
Yes (Microsoft TFS, MSBuild, Nant, Final Builder) |
Code Coverate Integration |
Yes (CoverageEye, NCover, PartCover, DevPartner, Clover.NET, ExactMagic's TestMatrix, MSTest Code Coverage (Visual Studio and Team System), dotTrace, ReSharper, AQtime) |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
Yes |
Auto Recursive Fakes |
Yes |
Fake Dependencies |
Yes |
Url |
http://www.typemock.com/isolator-product-page |
Rhino Mocks
Software License |
BSD license |
Last Active |
Jan-2010 |
Latest Version |
Rhino Mocks 3.6 |
Supported .NET Version |
.NET 3.5 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
No |
Auto Recursive Fakes |
No |
Fake Dependencies |
No |
Url |
http://hibernatingrhinos.com/oss/rhino-mocks |
Moq
Software License |
BSD license |
Last Active |
Apr-2011 |
Latest Version |
Moq 4.0 |
Supported .NET Version |
.NET 3.5 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
No |
Auto Recursive Fakes |
No |
Fake Dependencies |
No |
Url |
https://code.google.com/p/moq/ |
Nsubstitute
Software License |
BSD license |
Last Active |
Aug-13 |
Latest Version |
NSubstitute-1.6.1.0 |
Supported .NET Version |
.NET 4.0 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
No |
Auto Recursive Fakes |
No |
Fake Dependencies |
No |
Url |
http://nsubstitute.github.io/ |
JustMock
Software License |
Full Version - Commercial, Lite - Free |
Last Active |
Oct-2013 |
Latest Version |
V 2013.3.1015.0 |
Supported .NET Version |
.NET 4.0 |
Build Server Integration |
Yes (TFS, CruiseControl.NET, Team City & Jenkins etc) |
Code Coverate Integration |
Yes (NCover, PartCover, JetBrains dotTrace, PostSharp etc) |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
Yes |
Auto Recursive Fakes |
Yes |
Fake Dependencies |
Yes |
Url |
http://www.telerik.com/products/mocking.aspx |
FakeItEasy
Software License |
MIT License |
Last Active |
Oct-2013 |
Latest Version |
v 1.13.1 |
Supported .NET Version |
.NET 3.5 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
No |
Auto Recursive Fakes |
Yes |
Fake Dependencies |
No |
Url |
https://github.com/FakeItEasy/FakeItEasy |
Microsoft Flakes
Software License |
Commercial with Visual Studio |
Last Active |
Mar-2013 |
Latest Version |
- |
Supported .NET Version |
.NET 4.0 |
Build Server Integration |
No |
Code Coverate Integration |
No |
Mock Interfaces |
Yes |
Mock Everything |
Yes |
Mock Legacy Code |
No |
Auto Recursive Fakes |
No |
Fake Dependencies |
No |
Url |
http://msdn.microsoft.com/en-us/library/hh549175.aspx |
Now you should be able to select the right framework that suits your needs.
It's fine to celebrate success but it is more important to heed the lessons of failure.
Bill Gates
0 comments:
Post a Comment