Create an integration tests project
To prepare a project for your integration tests, you must perform the following:
-
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.dllandMbUnit.dllare automatically added when you installed the NuGet packages. -
Mark the assembly with the
IntegrationTestsattribute.
In theAssemblyInfofile, 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.
-
Add a reference in your test project to your Sitefinity web application
Add a reference to your Sitefinity CMS project in the test project.