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.

Was this article helpful?