Dennis discusses the challenges of acceptance testing in Umbraco applications, emphasizing the need for a predictable state to avoid flaky tests. He suggests using the Umbraco management API, introduced in Umbraco 16, to programmatically set up content scenarios. This approach could facilitate reliable acceptance tests, which he plans to explore further.
Dennis shares a comprehensive automated testing setup for Umbraco 16 on GitHub, aimed at facilitating test-driven development. The repository includes a small example website, a unit testing project, and an integration testing project, providing practical examples and encouraging community contributions to enhance testing practices in Umbraco.
In this tutorial, Dennis explains how to conduct integration testing for an Umbraco project using TestContainers and a real SQL Server database. Key steps include setting up Docker, creating a utility for database management, and writing tests for Entity Framework Core and the Umbraco site. The process enhances testing reliability and efficiency.