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 Sitefinity context in order to test your custom logic in an actual environment. The Sitefinity CMS web test runner connects to the Sitefinity 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

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?