playwright-dotnet icon indicating copy to clipboard operation
playwright-dotnet copied to clipboard

[Feature]: Support xUnit in .NET C# codegen target

Open pbolduc opened this issue 4 months ago • 0 comments

🚀 Feature Request

Currently the .NET C# target in the codegen UI only supports MS Test, NUnit and Library. xUnit was added a supported framework in playwright-dotnet with version 1.50.0 about 7 months ago. It still feels like a second class citizen due to the lack of support in the code generator.

Image

Is this on the backlog? I searched open tickets in this repository and could not find any open issues related to this. Are there still outstanding issues that make running playwright in dotnet with xUnit problematic or unstable? Or is it just the lack of available engineering time?

This is the file where the C# targets are defined.

https://github.com/microsoft/playwright/blob/84ab5d018a3f17ca9915cadc9374008ef4896639/packages/playwright-core/src/server/codegen/csharp.ts#L25

Example

No response

Motivation

Most of my projects standardize on xUnit tests. Being able to generate unit tests that use the standard testing framework in the projects saves time not having to search an replace usings attribute names.

pbolduc avatar Sep 08 '25 18:09 pbolduc