Create an integration tests project

To prepare a project for your integration tests, you must perform the following:

  1. Create an empty project.
    In the solution of your Sitefinity CMS application, create an empty class library project.

    NOTE: References to the testing framework assemblies Gallio.dll and MbUnit.dll are automatically added when you installed the NuGet packages.

  2. Mark the assembly with the IntegrationTests attribute.
    In the AssemblyInfo file, add the following attribute:
    [assembly: Telerik.WebTestRunner.Server.Attributes.IntegrationTests()]

    It specifies that the assembly contains integration tests. Later the Sitefinity CMS web test runner will use it to load the tests.

  3. Add a reference in your test project to your Sitefinity web application
    Add a reference to your Sitefinity CMS project in the test project.

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?