Skip to content

Microsoft.Testing.Platform

Romfos edited this page Aug 5, 2025 · 1 revision

About Microsoft.Testing.Platform

BddDotNet is based on Microsoft.Testing.Platform. Read more about Microsoft.Testing.Platform

Typical empty Microsoft.Testing.Platform app looks like:

using Microsoft.Testing.Platform.Builder;

var builder = await TestApplication.CreateBuilderAsync(args);
using var testApp = await builder.BuildAsync();
return await testApp.RunAsync();

To configure BddDotNet you need to use AddBddDotNet extension method

using BddDotNet;
using Microsoft.Testing.Platform.Builder;

var builder = await TestApplication.CreateBuilderAsync(args);

var services = builder.AddBddDotNet(); // new line

using var testApp = await builder.BuildAsync();
return await testApp.RunAsync();

This method will return IServiceCollection instance for further configuration

Clone this wiki locally