Integration Testing
A guide to getting started with integration testing in Umbraco
Getting started
//Create project
dotnet new nunit
//Install Umbraco.Tests.Integration package
dotnet add package Umbraco.Cms.Tests.Integration[SetUpFixture]
public class CustomGlobalSetupTeardown
{
private static GlobalSetupTeardown _setupTearDown;
[OneTimeSetUp]
public void SetUp()
{
_setupTearDown = new GlobalSetupTeardown();
_setupTearDown.SetUp();
}
[OneTimeTearDown]
public void TearDown()
{
_setupTearDown.TearDown();
}
}Creating a test
Testing a notification
Testing with a schema
Testing from controller to database
Last updated
Was this helpful?