So, testing with Sitecore. This is a special topic, and I have already found reading materials for it. (Sitecore Development Chapter 8, Alistair Deneys blog , NextDigital blog , iStern blog , but in most cases they are built with NUnit and regular test runners, etc ... The most useful (for me in my context) was iStern blog for bullying Sitecore with Microsoft Fakes But is this the way to go?
I am surprised that with the help of the Hedgehog TDS system, it is so deeply integrated with TFS and able to do CI in Sitecore that there is nothing more than how to use this system to configure reliable testing performed by TFS (for now).
We are preparing for a large new project that Sitecore now uses to handle interaction with the external interface when the data used is 95% behind the WCF service. Therefore, this part can be easily tested and developed by TDD. This is the last 5% (which, unfortunately, includes as the highest value for the business, being online payments), which are in Sitecore, which need to be tested. Can we ever have enough intimate knowledge of sitecore to mock it? I would be inclined to think not ... if so, how will we run the final tests in our TFS CI assembly against sitecore?
And last but not least, I feel that the information that can be found now is a bit outdated (maily, seeing comments on the NextDigital blog ), Does Sitecore 7 open up new ways to solve this problem?
For those who see it more as a philosophical and then a technical question: there can only be one answer to this, and this is a technical exact definition of how to use the Microsoft test environment that can work in the TSI CI environment to verify code written for Sitecore.
source
share