# Create an integration tests project

## Procedure

1. In your Sitefinity project, create a new class library project. The project build output path must lead to the `bin` folder.
2. Install `Progress.Sitefinity.TestIntegration.Framework` NuGet package in your Sitefinity project.
3. For the `IntegrationTestsSettings.json` file, set the `Copy to Output Directory` build property to `Copy if newer` or `Copy always`.

   > info  **NOTE**: Your Sitefinity website must contain the configuration file `IntegrationTestsSettings.json` in the Sitefinity project `bin` folder.
4. Update the integration tests settings to match your project.\
   Note that the default Sitefinity authentication protocol OAuth 2.0 must be used. For more information, see [Configure Oauth2](https://www.progress.com/documentation/sitefinity-cms/configure-oauth2).
5. (Optional) You can customize when the `ClassCleanup()` methods are executed by using the assembly attribute `ClassCleanupExecution`: \
   Add `[assembly: ClassCleanupExecution(ClassCleanupBehavior.EndOfClass)]`

   By default, the `ClassCleanupExecution` is after all tests of the assembly are executed.\
   You can change this by using the assembly attribute `ClassCleanupExecution`. 

   * `ClassCleanupBehavior.EndOfAssembly`: Called after all tests of the assembly are executed
   * `ClassCleanupBehavior.EndOfClass`: Called after all tests of the class are executed
