From 7095b4abe8a95bc2def4b37d2a4cf8afaa1bc7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Mon, 6 May 2024 23:11:43 +0200 Subject: [PATCH] MSTest.Sdk: document EnablePlaywright and EnableAspireTesting --- docs/core/testing/unit-testing-mstest-sdk.md | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/docs/core/testing/unit-testing-mstest-sdk.md b/docs/core/testing/unit-testing-mstest-sdk.md index 5825e6b5069f7..53c53ce66fafa 100644 --- a/docs/core/testing/unit-testing-mstest-sdk.md +++ b/docs/core/testing/unit-testing-mstest-sdk.md @@ -140,6 +140,54 @@ Or to disable an extension that is coming from the selected profile. In this cas ``` +## Features + +Outside of the selection of the runner and runner specific extensions, `MSTest.Sdk` also provides additional features to simplify and enhance your testing experience. + +### Aspire + +`.NET Aspire` is an opinionated, cloud ready stack for building observable, production ready, distributed applications. .NET Aspire is delivered through a collection of NuGet packages that handle specific cloud-native concerns. For more information about it, check out its [documentation page](https://learn.microsoft.com/dotnet/aspire/get-started/aspire-overview). + +> [!NOTE] +> This feature is available from MSTest.Sdk 3.4.0 + +By setting the property `EnableAspireTesting` to `true` you can bring all dependencies and default usings you would need for testing with `Aspire` and `MSTest`. + +```xml + + + + net8.0 + true + + + + + +``` + +### Playwright + +`Playwright` enables reliable end-to-end testing for modern web apps. For more information about it, check out its [documentation page](https://playwright.dev/dotnet/docs/intro). + +> [!NOTE] +> This feature is available from MSTest.Sdk 3.4.0 + +By setting the property `EnablePlaywright` to `true` you can bring all dependencies and default usings you would need for testing with `Playwright` and `MSTest`. + +```xml + + + + net8.0 + true + + + + + +``` + ## Migrating to MSTest SDK When migrating an existing MSTest test project to MSTest SDK, start by replacing the `Sdk="Microsoft.NET.Sdk"` entry at the top of your test project with `Sdk="MSTest.Sdk/3.3.1"`