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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?