Create integration tests with Sitefinity CMS web test runner

When developing for Sitefinity CMS, you often need to cover your custom code with tests in order to verify that it works properly. In the most cases you will be writing either Unit tests or Integration tests.

The tool allows you to run integration test written using the Gallio and the MbUnit frameworks in the context of the Sitefinity CMS application, thus allowing you to test the code that you wrote for it. The tests are hosted in a Sitefinity CMS application. This allows them to use the Siteifnity context in order to test your custom logic in an actual environment. The Sitefinity CMS web test runner connects to the Sitefnity application and queries all of the tests available.

PREREQUISITES: You have to have installed in your project the following NuGet packages:
  • Gallio_MbUnit from http://www.nuget.org.
    To do this, in Visual Studio's Package Manager Console, run:
    Install-Package Gallio_MbUnit -Version 3.4.14
  • Telerik.WebTestRunner.Server from http://nuget.sitefinity.com.
    To do this, in Visual Studio's Package Manager Console, run:
    Install-Package Telerik.WebTestRunner.Server -Version 2.0.0.0

Was this article helpful?