NEW! This documentation section is for FakeXrmEasy versions 1.x and earlier, which are now deprecated.
Please do check our brand new documentation for FakeXrmEasy versions 2 or later that support both the CRM SDK and the new DataverseClient in .net core here!
FakeXrmEasy is an open source automated testing framework specifically designed for Dynamics CRM versions 2011, 2013, 2015 and 2016.
FakeXrmEasy enhances your organisation to be more productive because it uses an In Memory organization database, where you can run hundreds of automated tests in a matter of seconds. Seriously.
It also helps by giving you already mocked objects, like an IOrganizationService, or a plugin context, or a code activity context, which use the In Memory context above. It is, more precisely, a mocking library for Dynamics CRM you can use with your test framework of choice (XUnit, NUnit, etc...).
In a nutshell, it is like having an Organization Database, but much more lightweight, and allowing you to develop & run your tests straight from within Visual Studio or MSBuild, without even opening thousands of CRM windows and forms, therefore, making your development lifecycle much more efficient.
FakeXrmEasy was born due to the lack of mocking libraries for Dynamics CRM. There are other automated testing frameworks for Dynamics CRM projects out there but they rely on mocking libraries like Moq or Microsoft Fakes, which means, you have to code your own mocks from scratch, and doing that, we can tell you, is really time consuming.
So, FakeXrmEasy goes further than that and it provides you with an already mocked OrganizationService which intercepts your plugins, codeactivities, ... and so on.
Because of that, you could adopt TDD strategies more easily, or use wherver testing paradigms best suits you, the point is: You don't have to worry about mocking anything, it's arlready done for you!
This section will describe in more detail how to install FakeXrmEasy and get started on writing your first tests. Please, follow the links on the page left hand side.
We are constantly evolving and improving the project, so please feel free to get in touch about suggestions and, of course, everyone is welcome to contribute to the cause.
We want this framework to be literally the Top #1 Dynamics CRM's Automated Testing Framework in the World!
Note: This section is only available in English. If you would like this section translated to other languages, please, get in touch ant let us know.
Nota: Esta sección sólo está disponible en inglés. Si desea esta sección traducida a otros idiomas, por favor, contacte con nosotros para hacérnoslo saber.
Nota: Aquesta secció només està disponible an anglès. Si desitja aquesta secció traduïda a altres idiomes, si us plau, contacti amb nosaltres per fer-nos-ho saber.