Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(dotnet): document unsupported parallelism attributes in NUnit/MSTest (#16471)
Darío Kondratiuk13f210a1e8b0
diff --git a/docs/src/test-runners-csharp.md b/docs/src/test-runners-csharp.mdindex c967c0b82c..9a794f22b3 100644--- a/docs/src/test-runners-csharp.md+++ b/docs/src/test-runners-csharp.md@@ -24,9 +24,11 @@ Playwright provides base classes to write tests with NUnit via the [`Microsoft.P# Create a new projectdotnet new nunit -n PlaywrightTestscd PlaywrightTests+# Add the required referencedotnet add package Microsoft.Playwright.NUnitdotnet build+# Install the required browsers and operating system dependenciespwsh bin\Debug\netX\playwright.ps1 install --with-deps```@@ -104,7 +106,8 @@ dotnet test --filter "Name~Slogan"### Running NUnit tests in Parallel-By default NUnit will run all test files in parallel, while running tests inside each file sequentially. It will create as many processes as there are cores on the host system. You can adjust this behavior using the NUnit.NumberOfTestWorkers parameter.+By default NUnit will run all test files in parallel, while running tests inside each file sequentially (`ParallelScope.Self`). It will create as many processes as there are cores on the host system. You can adjust this behavior using the NUnit.NumberOfTestWorkers parameter.+Running test in parallel using `ParallelScope.All` or `ParallelScope.Fixtures` is not supported.For CPU-bound tests, we recommend using as many workers as there are cores on your system, divided by 2. For IO-bound tests you can use as many workers as you have cores.@@ -224,9 +227,11 @@ Playwright provides base classes to write tests with MSTest via the [`Microsoft.# Create a new projectdotnet new mstest -n PlaywrightTestscd PlaywrightTests+# Add the required referencedotnet add package Microsoft.Playwright.MSTestdotnet build+# Install the required browsers and operating system dependenciespwsh bin\Debug\netX\playwright.ps1 install --with-deps```@@ -304,7 +309,8 @@ dotnet test --filter "Name~Slogan"### Running MSTest tests in Parallel-By default MSTest will run all classes in parallel, while running tests inside each class sequentially. It will create as many processes as there are cores on the host system. You can adjust this behavior by using the following CLI parameter or using a `.runsettings` file, see below.+By default MSTest will run all classes in parallel, while running tests inside each class sequentially (`ExecutionScope.ClassLevel`). It will create as many processes as there are cores on the host system. You can adjust this behavior by using the following CLI parameter or using a `.runsettings` file, see below.+Running tests in parallel at the method level (`ExecutionScope.MethodLevel`) is not supported.```bashdotnet test --settings:.runsettings -- MSTest.Parallelize.Workers=4@@ -389,7 +395,7 @@ For example, to specify the amount of workers (`MSTest.Parallelize.Workers`), yo```xml<RunSettings>-<!-- MSTest adapter -->+<!-- MSTest adapter --><MSTest><Parallelize><Workers>4</Workers>